aboutsummaryrefslogtreecommitdiffstats
path: root/src/args.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2023-11-09 15:46:01 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2023-11-09 15:46:01 +0000
commit0f38f5bddbfdeb525e1bcaca7d015b9ad6e1e128 (patch)
tree6f6a45f56c6bef418af3915ddf91e34c5d30116c /src/args.rs
parentBump deps (diff)
downloadminiserve-0f38f5bddbfdeb525e1bcaca7d015b9ad6e1e128.tar.gz
miniserve-0f38f5bddbfdeb525e1bcaca7d015b9ad6e1e128.zip
Better help for -u
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs
index c78e08c..c5c268f 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -138,6 +138,11 @@ pub struct CliArgs {
pub qrcode: bool,
/// Enable file uploading (and optionally specify for which directory)
+ ///
+ /// The provided path is not a physical file system path. Instead, it's relative to the serve
+ /// dir. For instance, if the serve dir is '/home/hello', set this to '/upload' to allow
+ /// uploading to '/home/hello/upload'.
+ /// When specified via environment variable, a path always neesd to the specified.
#[arg(short = 'u', long = "upload-files", value_hint = ValueHint::FilePath, num_args(0..=1), value_delimiter(','), env = "MINISERVE_ALLOWED_UPLOAD_DIR")]
pub allowed_upload_dir: Option<Vec<PathBuf>>,