diff options
Diffstat (limited to '')
-rw-r--r-- | src/args.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index 47f4d1f..b4b50e2 100644 --- a/src/args.rs +++ b/src/args.rs @@ -27,6 +27,10 @@ struct CLIArgs { #[structopt(name = "PATH", parse(from_os_str))] path: Option<PathBuf>, + /// serve index.* files by default + #[structopt(short = "d", long)] + default_index: bool, + /// Port to use #[structopt(short = "p", long = "port", default_value = "8080")] port: u16, |