From ad06f034bd991e931c4dcf5eea78362fd0f440b2 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Mon, 29 Jan 2024 19:25:03 -0500 Subject: add short version of `--disable-indexing` cli arg --- src/args.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index 7502d9f..3124d96 100644 --- a/src/args.rs +++ b/src/args.rs @@ -296,9 +296,10 @@ pub struct CliArgs { pub readme: bool, /// Disable indexing + /// /// This will prevent miniserve from generating directory listings /// and will return a 404 instead. - #[arg(long, env = "MINISERVE_DISABLE_INDEXING")] + #[arg(short = 'I', long, env = "MINISERVE_DISABLE_INDEXING")] pub disable_indexing: bool, } -- cgit v1.2.3