These are chat archives for kbknapp/clap-rs

16th
Apr 2018
Kevin K.
@kbknapp
Apr 16 2018 13:29
@memchk I think you can actually use a combination and just have structopt generate the App for you, you add the arg group, then use structopts conversions to pasrse and go back to your struct
Using structopt::clap via something like:
struct Args {
   // ...
}

let args: Args = Args::clap().group(ArgGroup::with_name("foo")).get_matches().from_clap();