aboutsummaryrefslogtreecommitdiffstats
path: root/src/args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs
index 7e3668b..3fb0ede 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -293,6 +293,13 @@ pub struct CliArgs {
/// Enable README.md rendering in directories
#[arg(long, env = "MINISERVE_README")]
pub readme: bool,
+
+ /// Disable indexing
+ ///
+ /// This will prevent directory listings from being generated
+ /// and return an error instead.
+ #[arg(short = 'I', long, env = "MINISERVE_DISABLE_INDEXING")]
+ pub disable_indexing: bool,
}
/// Checks whether an interface is valid, i.e. it can be parsed into an IP address