From cdb7b5fc87527938fd501893256bff6e96e010ef Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 28 May 2022 19:48:54 +0800 Subject: [PATCH] docs: improve readme --- README.md | 7 ++++++- src/args.rs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6c0a58f..c90559b 100644 --- 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 diff --git a/src/args.rs b/src/args.rs index 1b324a6..183ff9d 100644 --- a/src/args.rs +++ b/src/args.rs @@ -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')