diff options
author | Lukas Stabe <lukas@stabe.de> | 2020-09-24 03:22:45 +0000 |
---|---|---|
committer | Lukas Stabe <lukas@stabe.de> | 2020-09-24 03:22:45 +0000 |
commit | 746535b7645b6aeb6eb58dced984530744fef161 (patch) | |
tree | 58b5a8df0d9185fc707e7c57104af21b58db1aa5 /src/args.rs | |
parent | Sorry cargo fmt (diff) | |
download | miniserve-746535b7645b6aeb6eb58dced984530744fef161.tar.gz miniserve-746535b7645b6aeb6eb58dced984530744fef161.zip |
add title option (#335) and breadcrumb links in heading
Diffstat (limited to '')
-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, } } |