Skip to content

Commit

Permalink
fix: use DUFS_CONFIG to specify the config file path (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Nov 8, 2023
1 parent 0d74fa3 commit a476c15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ All options can be set using environment variables prefixed with `DUFS_`.

```
[serve-path] DUFS_SERVE_PATH=/dir
--config <path> 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=/path
Expand Down
2 changes: 1 addition & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a476c15

Please sign in to comment.