>> 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
|
||||
|
||||
`);
|
||||
}
|
||||
|
|
|
|||
4
man.md
4
man.md
|
|
@ -24,6 +24,10 @@ Change what happens to invalid characters. Choices are:
|
|||
- "represent": replace each character with "\_Unum_", where "num" is the
|
||||
Unicode Code Point of the character.
|
||||
|
||||
### -r, \-\-recurse DIRECTORY
|
||||
Recursively search DIRECTORY for files/directories to rename. Search
|
||||
includes DIRECTORY itself.
|
||||
|
||||
### -n, \-\-dry-run
|
||||
Causes Owl to just print a representation of what would be done without
|
||||
actually renaming any files.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue