These are chat archives for kbknapp/clap-rs

3rd
May 2018
Alexey
@KalitaAlexey
May 03 2018 08:07

It's cool. Thanks. Is there a way to display the description of possible values?
Like:

sm.exe build --project [<project>...]

Projects:
   FirstProject Description of First project
   SecondProject Description of Second project

Or should I use custom template for that?

I wanted to use subcommands because I have a predefined set of commands which I want to provide description for, however, I decided that I want to accept more than one argument.
Alexey
@KalitaAlexey
May 03 2018 08:34

Also I want to have:

USAGE:
    sm.exe build <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    help        Prints this message or the help of the given subcommand(s)
    project
    solution    Builds the solution

instead of

sm.exe-build

USAGE:
    sm.exe build <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    help        Prints this message or the help of the given subcommand(s)
    project
    solution    Builds the solution