aboutsummaryrefslogtreecommitdiffstats
path: root/src/args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/args.rs b/src/args.rs
index 6a3a4a5..d31cb26 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -27,9 +27,9 @@ struct CLIArgs {
#[structopt(name = "PATH", parse(from_os_str))]
path: Option<PathBuf>,
- /// serve index.* files by default
- #[structopt(short = "d", long)]
- default_index: bool,
+ /// name of an index files 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")]
@@ -166,7 +166,7 @@ pub fn parse_args() -> crate::MiniserveConfig {
no_symlinks: args.no_symlinks,
random_route,
default_color_scheme,
- default_index: args.default_index,
+ index: args.index,
overwrite_files: args.overwrite_files,
file_upload: args.file_upload,
}