diff --git a/shared/src/prompts.rs b/shared/src/prompts.rs index eb07938..1e8a320 100644 --- a/shared/src/prompts.rs +++ b/shared/src/prompts.rs @@ -39,7 +39,7 @@ pub fn add_cidr(cidrs: &[Cidr], request: &AddCidrOpts) -> Result, + pub name: Option, /// The CIDR network (eg. "10.42.5.0/24") #[structopt(long)] @@ -581,7 +581,7 @@ impl FromStr for Hostname { if Self::is_valid(name) { Ok(Self(name.to_string())) } else { - Err("invalid hostname") + Err("invalid hostname string (only alphanumeric with dashes)") } } }