diff options
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index 8fde78a..ad5f1d6 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>, + /// name of an index file to serve by default + #[structopt(long, parse(from_os_str), name="index_file")] + index: Option<PathBuf>, + /// Port to use #[structopt(short = "p", long = "port", default_value = "8080")] port: u16, @@ -162,6 +166,7 @@ pub fn parse_args() -> crate::MiniserveConfig { no_symlinks: args.no_symlinks, random_route, default_color_scheme, + index: args.index, overwrite_files: args.overwrite_files, file_upload: args.file_upload, } |