These are chat archives for kbknapp/clap-rs

30th
Nov 2016
Nathan Lilienthal
@nixpulvis
Nov 30 2016 19:15
So here's a question. I saw that there was a recomendation for a function like clap() -> SubCommand but that doesn't really work well with the current interfaces for creating a SubCommand, are there plans to make factoring out subcommands into their own modules a bit more nice?
I'd love something like
mod test {
    const SUBCOMMAND: _ = SubCommand::new(...) ...;
    fn run(args: &ArgMatches<'a>) { ... }
}
Kevin K.
@kbknapp
Nov 30 2016 20:50
I'm not sure what you mean?