>> 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) {
|
for index < len(args) {
|
||||||
switch arg := args[index]; arg {
|
switch arg := args[index]; arg {
|
||||||
case "-d", "--directory":
|
case "-r", "--recurse":
|
||||||
index++
|
index++
|
||||||
result.RecurseDirs = append(result.RecurseDirs, args[index])
|
result.RecurseDirs = append(result.RecurseDirs, args[index])
|
||||||
case "-n", "--dry-run":
|
case "-n", "--dry-run":
|
||||||
|
|
@ -233,7 +233,7 @@ func printHelp() {
|
||||||
-s,--strategy
|
-s,--strategy
|
||||||
-h,--help
|
-h,--help
|
||||||
-v,--version
|
-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
|
- "represent": replace each character with "\_Unum_", where "num" is the
|
||||||
Unicode Code Point of the character.
|
Unicode Code Point of the character.
|
||||||
|
|
||||||
|
### -r, \-\-recurse DIRECTORY
|
||||||
|
Recursively search DIRECTORY for files/directories to rename. Search
|
||||||
|
includes DIRECTORY itself.
|
||||||
|
|
||||||
### -n, \-\-dry-run
|
### -n, \-\-dry-run
|
||||||
Causes Owl to just print a representation of what would be done without
|
Causes Owl to just print a representation of what would be done without
|
||||||
actually renaming any files.
|
actually renaming any files.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue