stdrename
stdrename copied to clipboard
Group flags in `--help`
I'm not sure if this is possible within your CLI framework, but grouping flags as such (or some other way):
CONVENTIONS:
-k, --kebab Uses the kebab-case naming convention
-p, --pascal Uses the PascalCase naming convention
--screaming Uses the SCREAMING_SNAKE_CASE naming convention
-S, --sentence Uses the Sentence case naming convention
-T, --title Uses the Title Case naming convention
-t, --train Uses the Train-Case naming convention
-c, --camel Uses the camelCase naming convention
-s, --snake Uses the snake_case naming convention
FLAGS:
-D, --dir Renames directories as well
-r, --recursive Makes renaming recursive, renaming files in subfolders as well
-q, --quiet Suppress output
-h, --help Prints help information
-V, --version Prints version information
And, perhaps, to simplify USAGE
as such:
USAGE:
stdrename [FLAGS] <convention> [TARGET]
The second part is done. For the first one, I'd have to open an issue on the clap crate (the current argument parser) or keep the whole help message updated manually. I'm not sure if I want that yet. Keeping this open for now.