diff --git a/README.md b/README.md index 79a2f58..47f8c5e 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Arguments: [serve-path] Specific path to serve [default: .] Options: - -c, --config Specify configuration file + -c, --config Specify configuration file -b, --bind Specify bind address or unix socket -p, --port Specify port to listen on [default: 5000] --path-prefix 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 DUFS_CONFIG=config.yaml + --config DUFS_CONFIG=config.yaml -b, --bind DUFS_BIND=0.0.0.0 -p, --port DUFS_PORT=5000 --path-prefix DUFS_PATH_PREFIX=/static diff --git a/src/args.rs b/src/args.rs index edd05f2..c95941c 100644 --- a/src/args.rs +++ b/src/args.rs @@ -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")