diff --git a/src/opts.rs b/src/opts.rs index 61be3e2..db4d8bc 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -122,7 +122,7 @@ impl CommandOpts { pub fn print_usage(prog: &str, opts: &Options) { let brief = format!( "{} -{} download [options] [] {} +{} download/d [options] [] {} {} config fix [options] {} {} config help [options] {}", gettext("Usage:"), @@ -247,7 +247,7 @@ pub fn parse_cmd() -> Option { return Some(CommandOpts::new(Command::None)); } let cmd = &result.free[0]; - let mut re = if cmd == "download" { + let mut re = if cmd == "download" || cmd == "d" { Some(CommandOpts::new(Command::Download)) } else if cmd == "config" { Some(CommandOpts::new(Command::Config))