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 8467a92..25a3503 100644 --- a/src/args.rs +++ b/src/args.rs @@ -99,6 +99,10 @@ struct CLIArgs { /// because zip generation is done in memory and cannot be sent on the fly #[structopt(short = "z", long = "enable-zip")] enable_zip: bool, + + /// Shown instead of host in page title and heading + #[structopt(short = "t", long = "title")] + title: Option<String>, } /// Checks wether an interface is valid, i.e. it can be parsed into an IP address @@ -201,6 +205,7 @@ pub fn parse_args() -> crate::MiniserveConfig { file_upload: args.file_upload, tar_enabled: args.enable_tar, zip_enabled: args.enable_zip, + title: args.title, } } |