diff --git a/common/src/args.rs b/common/src/args.rs index 8d32218..bb087b9 100644 --- a/common/src/args.rs +++ b/common/src/args.rs @@ -31,6 +31,7 @@ pub struct Args { pub cmd_new: bool, pub cmd_snapshot: bool, pub cmd_list: bool, + pub cmd_ls: bool, } impl Default for Args { @@ -44,6 +45,7 @@ impl Default for Args { cmd_new: true, cmd_snapshot: false, cmd_list: false, + cmd_ls: false, flag_d: true, flag_debug: false, flag_f: false, diff --git a/src/main.rs b/src/main.rs index 2546b83..e838ac6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,7 @@ static DISALLOWED_SHORTHAND_PROJECT_NAMES: [&str; 4] = ["new", "edit", "load", " static USAGE: &str = " Usage: - muxed list + muxed (list | ls) muxed [flags] [options] muxed edit [options] muxed load [flags] [options] @@ -100,7 +100,7 @@ pub fn main() { try_or_err!(new::exec(args)); } else if args.cmd_snapshot { try_or_err!(snapshot::exec(args)); - } else if args.cmd_list { + } else if args.cmd_list || args.cmd_ls { try_or_err!(list::exec(args)); } else { if DISALLOWED_SHORTHAND_PROJECT_NAMES.contains(&args.arg_project.as_ref()) {