pub fn parse_or_exit<T: Parser>(prog: &str, args: &[OsString]) -> Result<T, i32>Expand description
Parse args with a clap derive type, using prog as argv[0] so help and
usage lines name the command the way argparse does (xil-use).
On a usage error or --help, prints what clap would print and returns
the exit code to hand back (2 for errors, 0 for help/version), matching
argparse.