diff options
author | Carson McManus <carson.mcmanus1@gmail.com> | 2024-01-30 00:25:03 +0000 |
---|---|---|
committer | Carson McManus <carson.mcmanus1@gmail.com> | 2024-01-30 00:25:03 +0000 |
commit | ad06f034bd991e931c4dcf5eea78362fd0f440b2 (patch) | |
tree | f51719810ea28798880e8aaf25443541274c9ca5 | |
parent | add unit tests (diff) | |
download | miniserve-ad06f034bd991e931c4dcf5eea78362fd0f440b2.tar.gz miniserve-ad06f034bd991e931c4dcf5eea78362fd0f440b2.zip |
add short version of `--disable-indexing` cli arg
Diffstat (limited to '')
-rw-r--r-- | src/args.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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, } |