These are chat archives for kbknapp/clap-rs

Apr 2018
Apr 24 2018 07:57

@kbknapp I'll just use subcommand. It's okay for me.
However, what I wanted is:
run one_project app <Configuration e.g., Debug>
run one_project tests <Configuration e.g., Debug>
run another_project tests <Configuration e.g., Debug>

I wanted to avoid duplication of the Configuration argument which I would have to do if I use subcommands.

Apr 24 2018 13:02
I have an app which have two subcommands. If I enter a subcommand wrong, it says says "Found argument '...' which wasn't expected". Is there a way to say that the entered subcommand is wrong?