These are chat archives for kbknapp/clap-rs

25th
Jul 2017
Dan Schmidt
@dfannius
Jul 25 2017 14:44
I'm a Rust newbie using clap and liking it very much. One thing I can't find the way to do: require one subcommand to be present, and if none is, display help text and exit.
ArgMatches has a usage() that I can call by hand but not a help()
and I can't have my App print the help because it's already been moved when I call get_matches()
Thomas Schaller
@torkleyy
Jul 25 2017 15:52
@dfannius Probably variant.SubcommandRequiredElseHelp is what you're searching for?
Sorry, didn't copy full URL first.
Dan Schmidt
@dfannius
Jul 25 2017 16:02
@torkleyy Perfect, thanks!