You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert!(s != '-',"short alias name cannot be `-`");
2486
+
debug_assert!(s != '-',"short alias name cannot be `-`");
2495
2487
self.short_flag_aliases.push((s,true));
2496
2488
}
2497
2489
self
@@ -4041,7 +4033,7 @@ impl Command {
4041
4033
.map(|arg| arg.get_id().clone())
4042
4034
.collect();
4043
4035
4044
-
assert!(args_missing_help.is_empty(),
4036
+
debug_assert!(args_missing_help.is_empty(),
4045
4037
"Command::help_expected is enabled for the Command {}, but at least one of its arguments does not have either `help` or `long_help` set. List of such arguments: {}",
4046
4038
self.name,
4047
4039
args_missing_help.join(", ")
@@ -4299,7 +4291,7 @@ impl Command {
4299
4291
4300
4292
#[inline]
4301
4293
pub(crate)fncontains_short(&self,s:char) -> bool{
4302
-
assert!(
4294
+
debug_assert!(
4303
4295
self.is_set(AppSettings::Built),
4304
4296
"If Command::_build hasn't been called, manually search through Arg shorts"
0 commit comments