diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2020-09-24 03:44:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 03:44:58 +0000 |
commit | 4884c009d862a0692f145ec5c7dd485f2211da36 (patch) | |
tree | 0a5f92a12f3a67147700b88e51dd21f55dc00faf /src/args.rs | |
parent | Bump deps (diff) | |
parent | add test for breadcrumbs (diff) | |
download | miniserve-4884c009d862a0692f145ec5c7dd485f2211da36.tar.gz miniserve-4884c009d862a0692f145ec5c7dd485f2211da36.zip |
Merge pull request #378 from ahti/master
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, } } |