Skip to content

Commit

Permalink
Add WEBDAV_ROOT environment variable (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno authored Mar 4, 2024
1 parent 02303a1 commit 4d16358
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 @@ -216,6 +216,7 @@ Options:
--root <ROOT>
Root directory path
[env: WEBDAV_ROOT=]
[default: /]
-w, --workdir <WORKDIR>
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct Opt {
#[arg(long, default_value = "600")]
cache_ttl: u64,
/// Root directory path
#[arg(long, default_value = "/")]
#[arg(long, env = "WEBDAV_ROOT", default_value = "/")]
root: String,
/// Working directory, refresh_token will be stored in there if specified
#[arg(short = 'w', long)]
Expand Down

0 comments on commit 4d16358

Please sign in to comment.