소스 검색

Remove some redundant CLI command and argument aliases

timvisee 7 년 전
부모
커밋
db1087c9e9

+ 0 - 2
ROADMAP.md

@@ -3,8 +3,6 @@ The first release used for gathering feedback on the application by selected
 people.
 
 Features:
-- Use flag for archival functionality
-- Remove unnecessary command argument aliases
 - A `defaults` command to list defaults such as the host URL and history file
 - Make use of stdout and stderr consistent
 - Allow file/directory archiving on upload

+ 0 - 5
cli/src/cmd/arg/download_limit.rs

@@ -22,11 +22,6 @@ impl CmdArg for ArgDownloadLimit {
             .short("d")
             .alias("downloads")
             .alias("download")
-            .alias("down")
-            .alias("dlimit")
-            .alias("limit")
-            .alias("lim")
-            .alias("l")
             .value_name("COUNT")
             .help("The file download limit")
     }

+ 0 - 1
cli/src/cmd/arg/host.rs

@@ -19,7 +19,6 @@ impl CmdArg for ArgHost {
         Arg::with_name("host")
             .long("host")
             .short("h")
-            .alias("server")
             .value_name("URL")
             .default_value(SEND_DEFAULT_HOST)
             .help("The remote host to upload to")

+ 0 - 2
cli/src/cmd/arg/owner.rs

@@ -16,9 +16,7 @@ impl CmdArg for ArgOwner {
         Arg::with_name("owner")
             .long("owner")
             .short("o")
-            .alias("own")
             .alias("owner-token")
-            .alias("token")
             .value_name("TOKEN")
             .min_values(0)
             .max_values(1)

+ 0 - 1
cli/src/cmd/arg/password.rs

@@ -16,7 +16,6 @@ impl CmdArg for ArgPassword {
         Arg::with_name("password")
             .long("password")
             .short("p")
-            .alias("pass")
             .value_name("PASSWORD")
             .min_values(0)
             .max_values(1)

+ 0 - 3
cli/src/cmd/subcmd/delete.rs

@@ -10,9 +10,6 @@ impl CmdDelete {
         SubCommand::with_name("delete")
             .about("Delete a shared file")
             .visible_alias("del")
-            .alias("r")
-            .alias("rem")
-            .alias("remove")
             .arg(ArgUrl::build())
             .arg(ArgOwner::build())
     }

+ 0 - 2
cli/src/cmd/subcmd/history.rs

@@ -8,8 +8,6 @@ impl CmdHistory {
         SubCommand::with_name("history")
             .about("View file history")
             .visible_alias("h")
-            .alias("his")
-            .alias("list")
             .alias("ls")
     }
 }

+ 0 - 1
cli/src/cmd/subcmd/params.rs

@@ -15,7 +15,6 @@ impl CmdParams {
         SubCommand::with_name("parameters")
             .about("Change parameters of a shared file")
             .visible_alias("params")
-            .alias("par")
             .alias("param")
             .alias("parameter")
             .arg(ArgUrl::build())