From 2103ea0ed4df223b238dda96f142814692ed861d Mon Sep 17 00:00:00 2001 From: jikstra Date: Wed, 29 Dec 2021 04:10:24 +0100 Subject: Implement --route-prefix to set specific route prefix --- src/args.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index 88ad8fc..b733769 100644 --- a/src/args.rs +++ b/src/args.rs @@ -60,8 +60,12 @@ pub struct CliArgs { )] pub auth: Vec, + /// Use a specific route prefix + #[clap(long = "route-prefix")] + pub route_prefix: Option, + /// 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 -- cgit v1.2.3