浏览代码

Use two CLI binary names, show proper upload password help

timvisee 7 年之前
父节点
当前提交
e88198053f
共有 3 个文件被更改,包括 9 次插入2 次删除
  1. 1 0
      ROADMAP.md
  2. 4 0
      cli/Cargo.toml
  3. 4 2
      cli/src/cmd/cmd/upload.rs

+ 1 - 0
ROADMAP.md

@@ -1,4 +1,5 @@
 # Release 0.1
+- Set MIME type of file when downloaded 
 - Remember all uploaded files, make files listable
 - Incognito mode, to not remember files `--incognito`
 - Automatically get owner token, from file history when setting password

+ 4 - 0
cli/Cargo.toml

@@ -4,6 +4,10 @@ version = "0.1.0"
 authors = ["timvisee <timvisee@gmail.com>"]
 workspace = ".."
 
+[[bin]]
+path = "src/main.rs"
+name = "ffsend"
+
 [[bin]]
 path = "src/main.rs"
 name = "ffs"

+ 4 - 2
cli/src/cmd/cmd/upload.rs

@@ -20,8 +20,10 @@ impl CmdUpload {
                 .help("The file to upload")
                 .required(true)
                 .multiple(false))
-            .arg(ArgPassword::build())
-            .arg(ArgDownloadLimit::build().default_value(DOWNLOAD_DEFAULT))
+            .arg(ArgPassword::build()
+                 .help("Protect the file with a password"))
+            .arg(ArgDownloadLimit::build()
+                 .default_value(DOWNLOAD_DEFAULT))
             .arg(ArgHost::build())
             .arg(Arg::with_name("name")
                 .long("name")