refactor: change the value name of --config
(#313)
This commit is contained in:
parent
37800f630d
commit
44a4ddf973
2 changed files with 4 additions and 3 deletions
|
@ -54,7 +54,7 @@ Arguments:
|
||||||
[serve-path] Specific path to serve [default: .]
|
[serve-path] Specific path to serve [default: .]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-c, --config <config> Specify configuration file
|
-c, --config <file> Specify configuration file
|
||||||
-b, --bind <addrs> Specify bind address or unix socket
|
-b, --bind <addrs> Specify bind address or unix socket
|
||||||
-p, --port <port> Specify port to listen on [default: 5000]
|
-p, --port <port> Specify port to listen on [default: 5000]
|
||||||
--path-prefix <path> Specify a path prefix
|
--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="."
|
[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
|
-b, --bind <addrs> DUFS_BIND=0.0.0.0
|
||||||
-p, --port <port> DUFS_PORT=5000
|
-p, --port <port> DUFS_PORT=5000
|
||||||
--path-prefix <path> DUFS_PATH_PREFIX=/static
|
--path-prefix <path> DUFS_PATH_PREFIX=/static
|
||||||
|
|
|
@ -35,7 +35,8 @@ pub fn build_cli() -> Command {
|
||||||
.short('c')
|
.short('c')
|
||||||
.long("config")
|
.long("config")
|
||||||
.value_parser(value_parser!(PathBuf))
|
.value_parser(value_parser!(PathBuf))
|
||||||
.help("Specify configuration file"),
|
.help("Specify configuration file")
|
||||||
|
.value_name("file"),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("bind")
|
Arg::new("bind")
|
||||||
|
|
Loading…
Reference in a new issue