diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-02-06 12:23:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-06 12:23:21 +0000 |
commit | be047cb646418cb45bafc8444b00c9676a6c36bc (patch) | |
tree | 1f65ab57c3f606d612e2419faa25cf041583f010 /src/args.rs | |
parent | Merge pull request #727 from svenstaro/dependabot/cargo/rustls-pemfile-0.3.0 (diff) | |
parent | Fix route_prefix for css and favicon (diff) | |
download | miniserve-be047cb646418cb45bafc8444b00c9676a6c36bc.tar.gz miniserve-be047cb646418cb45bafc8444b00c9676a6c36bc.zip |
Merge pull request #728 from aliemjay/custom_route_prefix
Custom route prefix
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs index 7a6e41e..77925a2 100644 --- a/src/args.rs +++ b/src/args.rs @@ -60,8 +60,12 @@ pub struct CliArgs { )] pub auth: Vec<auth::RequiredAuth>, + /// Use a specific route prefix + #[clap(long = "route-prefix")] + pub route_prefix: Option<String>, + /// Generate a random 6-hexdigit route - #[clap(long = "random-route")] + #[clap(long = "random-route", conflicts_with("route-prefix"))] pub random_route: bool, /// Do not follow symbolic links |