diff --git a/crates/nu-protocol/src/signature.rs b/crates/nu-protocol/src/signature.rs index 7e5b64b78f..f5acadc7da 100644 --- a/crates/nu-protocol/src/signature.rs +++ b/crates/nu-protocol/src/signature.rs @@ -471,7 +471,7 @@ impl Signature { /// Panics if one of them is found fn check_names(&self, name: impl Into, short: Option) -> (String, Option) { let s = short.map(|c| { - debug_assert!( + assert!( !self.get_shorts().contains(&c), "There may be duplicate short flags for '-{}'", c @@ -481,7 +481,7 @@ impl Signature { let name = { let name: String = name.into(); - debug_assert!( + assert!( !self.get_names().contains(&name.as_str()), "There may be duplicate name flags for '--{}'", name