From: Matthew Hall Date: Wed, 29 Oct 2014 12:28:52 +0000 (+0000) Subject: Make help command accept -h and --help X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=8a3706aca87f7048fcd2da86b86e2d65b9479bd2;p=cargo.git Make help command accept -h and --help --- diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index f243689d3..d82d297ab 100644 --- a/src/bin/cargo.rs +++ b/src/bin/cargo.rs @@ -106,6 +106,9 @@ fn execute(flags: Flags, shell: &mut MultiShell) -> CliResult> { cargo::process_executed(r, shell); return Ok(None) } + "help" if flags.arg_args[0].as_slice() == "-h" || + flags.arg_args[0].as_slice() == "--help" => + (flags.arg_args, "help"), "help" => (vec!["-h".to_string()], flags.arg_args[0].as_slice()), s => (flags.arg_args.clone(), s), };