Function bpaf::cargo_helper
source · [−]Expand description
Strip a command name if present at the front when used as a cargo command
This helper should be used on a top level parser
let width = short('w').argument("PX").from_str::<u32>();
let height = short('h').argument("PX").from_str::<u32>();
let parser: Parser<(u32, u32)> = cargo_helper("cmd", construct!(width, height));