From a476c15a09aaf49e95b193dcdb9a99dd71c81b1e Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 8 Nov 2023 11:10:47 +0800 Subject: [PATCH] fix: use DUFS_CONFIG to specify the config file path (#286) --- README.md | 1 + src/args.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c2b43b8..b239217 100644 --- a/README.md +++ b/README.md @@ -333,6 +333,7 @@ All options can be set using environment variables prefixed with `DUFS_`. ``` [serve-path] DUFS_SERVE_PATH=/dir + --config DUFS_CONFIG=config.yaml -b, --bind DUFS_BIND=0.0.0.0 -p, --port DUFS_PORT=5000 --path-prefix DUFS_PATH_PREFIX=/path diff --git a/src/args.rs b/src/args.rs index a822d70..fe2ffb3 100644 --- a/src/args.rs +++ b/src/args.rs @@ -29,7 +29,7 @@ pub fn build_cli() -> Command { ) .arg( Arg::new("config") - .env("DUFS_SERVE_PATH") + .env("DUFS_CONFIG") .hide_env(true) .short('c') .long("config")