mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-31 08:33:44 +01:00
imp(CLI): disallow empty values explicitly
[skip ci]
This commit is contained in:
@@ -30,4 +30,4 @@ cargo:
|
||||
- yup-hyper-mock = "*"
|
||||
- serde = ">= 0.3.0"
|
||||
- serde_macros = "*"
|
||||
- clap = "*"
|
||||
- clap = ">= 0.9.1"
|
||||
|
||||
@@ -272,7 +272,8 @@ for &(main_command_name, ref about, ref subcommands) in arg_data.iter() {
|
||||
(_ , &Some(f)) => f,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
let mut arg = Arg::with_name(arg_name_str);
|
||||
let mut arg = Arg::with_name(arg_name_str)
|
||||
.empty_values(false);
|
||||
if let &Some(short_flag) = flag {
|
||||
arg = arg.short(short_flag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user