These are chat archives for kbknapp/clap-rs

24th
Apr 2018
Alexey
@KalitaAlexey
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.

Alexey
@KalitaAlexey
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?