Update src/build/arg/mod.rs
make error message more descriptive
@@ -270,7 +270,7 @@ impl<'help> Arg<'help> {
/// [`short`]: ./struct.Arg.html#method.short
pub fn short(mut self, s: char) -> Self {
if s == '-' {
- panic!("Invalid option character");
+ panic!("short option name cannot be `-`");
}
self.short = Some(s);
