These are chat archives for kbknapp/clap-rs

Apr 2018
Kevin K.
Apr 27 2018 14:09
What do you mean ignore it? You don't want it to print the help message? Or you don't want it to say sm.exe-build? The app-subcommand is a git style format, you can change it by using a custom App::template
if you want to disable the help message you can use AppSettings::DisableHelp
(for that subcommand)
You could also use something like App::get_matches_safe which will return clap::ErrorKind::HelpDisplayed when --help is called and you can simply ignore it, or print your own message.
so there's a few options depending on what you want to do