From 746535b7645b6aeb6eb58dced984530744fef161 Mon Sep 17 00:00:00 2001 From: Lukas Stabe Date: Thu, 24 Sep 2020 05:22:45 +0200 Subject: add title option (#335) and breadcrumb links in heading --- src/args.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/args.rs') 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, } /// 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, } } -- cgit v1.2.3