]> OzVa Git service - ozva-cloud/commitdiff
refactor: change the value name of `--config` (#313)
authorsigoden <sigoden@gmail.com>
Thu, 7 Dec 2023 07:14:41 +0000 (15:14 +0800)
committerGitHub <noreply@github.com>
Thu, 7 Dec 2023 07:14:41 +0000 (15:14 +0800)
README.md
src/args.rs

index 79a2f5818aaacaa7dbbefc945d44d937da85465c..47f8c5ef812109a4bac9be47067691591649c953 100644 (file)
--- a/README.md
+++ b/README.md
@@ -54,7 +54,7 @@ Arguments:
   [serve-path]  Specific path to serve [default: .]
 
 Options:
-  -c, --config <config>      Specify configuration file
+  -c, --config <file>        Specify configuration file
   -b, --bind <addrs>         Specify bind address or unix socket
   -p, --port <port>          Specify port to listen on [default: 5000]
       --path-prefix <path>   Specify a path prefix
@@ -308,7 +308,7 @@ All options can be set using environment variables prefixed with `DUFS_`.
 
 ```
 [serve-path]                DUFS_SERVE_PATH="."
-    --config <path>         DUFS_CONFIG=config.yaml
+    --config <file>         DUFS_CONFIG=config.yaml
 -b, --bind <addrs>          DUFS_BIND=0.0.0.0
 -p, --port <port>           DUFS_PORT=5000
     --path-prefix <path>    DUFS_PATH_PREFIX=/static
index edd05f2b270ed5dfa143f1cfa4f4c1b09e9c6cdd..c95941cb3c70d876fa5da95094ac9a5744691488 100644 (file)
@@ -35,7 +35,8 @@ pub fn build_cli() -> Command {
                 .short('c')
                 .long("config")
                 .value_parser(value_parser!(PathBuf))
-                .help("Specify configuration file"),
+                .help("Specify configuration file")
+                .value_name("file"),
         )
         .arg(
             Arg::new("bind")