Skip to content

Commit 796df68

Browse files
authored
Merge pull request #267 from stepchowfun/redundant-action
Remove a redundant Clap action
2 parents 2dfddb4 + 2cc60f3 commit 796df68

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Commands:
6868
6969
Options:
7070
-v, --version Print version
71-
-p, --path <PATH> Add the path to a directory to scan [default: .]
71+
-p, --path <PATH> Add a directory to scan [default: .]
7272
-t, --tag-sigil <TAG_SIGIL> Set the sigil used for tags [default: tag]
7373
-r, --ref-sigil <REF_SIGIL> Set the sigil used for tag references [default: ref]
7474
-f, --file-sigil <FILE_SIGIL> Set the sigil used for file references [default: file]

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ struct Cli {
4242
short,
4343
long = "path",
4444
value_name = "PATH",
45-
help = "Add the path to a directory to scan",
46-
default_value = ".",
47-
action = ArgAction::Append
45+
help = "Add a directory to scan",
46+
default_value = "."
4847
)]
4948
paths: Vec<PathBuf>,
5049

0 commit comments

Comments
 (0)