From ea0c972d165184e7be9da56d12ad0c55da8b934a Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:31:09 +0800 Subject: [PATCH] Set correct value hint for `--rm-files` option --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/args.rs b/src/args.rs index b818e0710..ac807a316 100644 --- a/src/args.rs +++ b/src/args.rs @@ -202,7 +202,7 @@ pub struct CliArgs { #[arg( short = 'R', long = "rm-files", - value_hint = ValueHint::FilePath, + value_hint = ValueHint::DirPath, num_args(0..=1), value_delimiter(','), env = "MINISERVE_ALLOWED_RM_DIR"