]> OzVa Git service - ozva-cloud/commitdiff
docs: improve readme
authorsigoden <sigoden@gmail.com>
Sat, 28 May 2022 11:48:54 +0000 (19:48 +0800)
committersigoden <sigoden@gmail.com>
Sat, 28 May 2022 11:48:54 +0000 (19:48 +0800)
README.md
src/args.rs

index 6c0a58f0598d8b4977971e7cc1a2db3eef2e459e..c90559bf05ffed43fb77359f85e55ec8afad4674 100644 (file)
--- a/README.md
+++ b/README.md
@@ -36,12 +36,17 @@ You can run this command to start serving your current working directory on 127.
 duf
 ```
 
-...or specify which folder you want to serve:
+...or specify which folder you want to serve.
 
 ```
 duf folder_name
 ```
 
+Only serve static files, disable upload and delete operations
+```
+duf --static
+```
+
 Finally, run this command to see a list of all available option
 
 
index 1b324a66bafe7a95021d8e704e1b80a99bf6b720..183ff9db7d5bd80607e46fee93a95f49b575c236 100644 (file)
@@ -31,7 +31,7 @@ fn app() -> clap::Command<'static> {
 
     let arg_static = Arg::new("static")
         .long("static")
-        .help("Only serve static files, not allowed to upload or delete file");
+        .help("Only serve static files, disable upload and delete operations");
 
     let arg_auth = Arg::new("auth")
         .short('a')