let m = App::from(yml).setting(clap::AppSettings::TrailingVarArg).get_matches();
I really hate rust, hope someone can help me, so I can get back to programming in a language I like...
Arg::with_name("tflag") .short("tf") .long("tflag") .help("Turbo on if this flag is specified"),
When I run...
error: The argument 'tflag' wasn't found
How do I make a an argument optional?
Still demands the argument.
clap::App: Send? I think it would suffice to replace
Archere. I would be open to implementing this (behind a feature flag).
Arc, I'm just wary it would penalize the performance for common cases in favor of corner cases. I don't see your case as very common, no offense.
#[derive()](or do we have to do all at once)? and (2) can we use a function call as the default value (we have some resolution logic in some places)?
Arcsolution behind a feature flag exactly due to performance concerns, and I am surprised that feature flags are supposed to be only additive in clap (other libraries like tokio use feature flags for similar things (std vs parking_lot sync stuff)). Would you mind expanding on that?