Gadiguibou / stdrename

'stdrename' is a small command line utility to rename all files in a folder according to a specified naming convention (camelCase, snake_case, kebab-case, etc.).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Group flags in `--help`

smhmd opened this issue · comments

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.