These are chat archives for kbknapp/clap-rs

19th
Jun 2016
Brian Pearce
@brianp
Jun 19 2016 23:08
Surpassed getopts downloads on crates.io :clap:
Kevin K.
@kbknapp
Jun 19 2016 23:15
Wow! Awesome😃
Brian Pearce
@brianp
Jun 19 2016 23:45
I still haven’t found a way to get —help to the Subcommand bin (not defined in App). Is there any way to intercept/delay/prevent clap from auto-printing when —help is present? I could manually check for it and print if found.
Unrelated: I’m going to see if I can dig in to kbknapp/clap-rs#426 this week. :)
Kevin K.
@kbknapp
Jun 19 2016 23:58
You can override --help, by providing an Arg with a long of help at which point it's up to the consumer to check for and provide the help.
For delaying it...not really but there may be other ways to work around it
Brian Pearce
@brianp
Jun 19 2016 23:59
Cool, i’ll try using long with “help”. I think I had before but got a weird result. I upgraded today though, so I’ll try again.