From b99b5bc3b7f9e9cf601ee349af5aa3afd41fa8e8 Mon Sep 17 00:00:00 2001 From: Thomas Lindop Date: Wed, 28 May 2025 11:23:58 +0100 Subject: [PATCH] >> add replace flag to help message > fix whitespace issues in help message --- main.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index c5b78a2..4caa3bc 100644 --- a/main.go +++ b/main.go @@ -343,11 +343,11 @@ func printHelp() { Rename FILES such that all characters that are invalid in FAT file systems (?,\,*,etc.) are removed. - + Options: -s,--strategy remove|represent What to do with bad characters; either replace with a representation or - remove + remove -h,--help Show this message -v,--version @@ -362,8 +362,11 @@ func printHelp() { Select a set of characters to limit filenames to. -p,--portable Alias for "--valid-set posix" + -c,--replace TARGET:REPLACEMENT1,REPLACEMENT2,... + Replace each instance of TARGET in file names with REPLACEMENT1 the + first time they appear, REPLACEMENT2 the second time, and so on - See man page for more details + See man page for more details `); }