>> rename directory flag
> add it to man page
This commit is contained in:
parent
5ce718239e
commit
bea54603cb
2 changed files with 6 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -192,7 +192,7 @@ func parseCLIArgs(args []string) (context, error) {
|
|||
}
|
||||
for index < len(args) {
|
||||
switch arg := args[index]; arg {
|
||||
case "-d", "--directory":
|
||||
case "-r", "--recurse":
|
||||
index++
|
||||
result.RecurseDirs = append(result.RecurseDirs, args[index])
|
||||
case "-n", "--dry-run":
|
||||
|
|
@ -233,7 +233,7 @@ func printHelp() {
|
|||
-s,--strategy
|
||||
-h,--help
|
||||
-v,--version
|
||||
-d,--directory DIRECTORY
|
||||
-r,--recurse DIRECTORY
|
||||
|
||||
`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue