aboutsummaryrefslogtreecommitdiffstats
path: root/src/args.rs
diff options
context:
space:
mode:
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 7467b59..909a88f 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -69,6 +69,10 @@ struct CliArgs {
#[structopt(short = "P", long = "no-symlinks")]
no_symlinks: bool,
+ /// Show hidden files
+ #[structopt(short = "H", long = "hidden")]
+ hidden: bool,
+
/// Default color scheme
#[structopt(
short = "c",
@@ -242,6 +246,7 @@ pub fn parse_args() -> crate::MiniserveConfig {
auth: args.auth,
path_explicitly_chosen,
no_symlinks: args.no_symlinks,
+ show_hidden: args.hidden,
random_route,
favicon_route,
css_route,