>> rename directory flag

> add it to man page
This commit is contained in:
Thomas Lindop 2025-05-24 11:45:32 +01:00
parent 5ce718239e
commit bea54603cb
2 changed files with 6 additions and 2 deletions

View file

@ -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
View file

@ -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.