From bea54603cbeb4fb4d9d96f83cf3ed6cb81837f11 Mon Sep 17 00:00:00 2001 From: Thomas Lindop Date: Sat, 24 May 2025 11:45:32 +0100 Subject: [PATCH] >> rename directory flag > add it to man page --- main.go | 4 ++-- man.md | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 0029261..6b3a82a 100644 --- a/main.go +++ b/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 `); } diff --git a/man.md b/man.md index f607935..8d2ab6b 100644 --- a/man.md +++ b/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.