mirror of
https://github.com/clap-rs/clap
synced 2025-03-05 07:47:40 +00:00
fix: Remove EmptyValues
The intention had been to that people setting this would now set nothing. Unfortunately, clap2 had `EmptyValues` as the default, so people were more likely to unset it, making this not work out.
This commit is contained in:
parent
e751d5e372
commit
83abb24002
1 changed files with 0 additions and 8 deletions
|
@ -52,7 +52,6 @@ impl_settings! { ArgSettings, ArgFlags,
|
||||||
MultipleValues("multiplevalues") => Flags::MULTIPLE_VALS,
|
MultipleValues("multiplevalues") => Flags::MULTIPLE_VALS,
|
||||||
Multiple("multiple") => Flags::MULTIPLE,
|
Multiple("multiple") => Flags::MULTIPLE,
|
||||||
ForbidEmptyValues("forbidemptyvalues") => Flags::NO_EMPTY_VALS,
|
ForbidEmptyValues("forbidemptyvalues") => Flags::NO_EMPTY_VALS,
|
||||||
EmptyValues("emptyvalues") => Flags::NO_OP,
|
|
||||||
Hidden("hidden") => Flags::HIDDEN,
|
Hidden("hidden") => Flags::HIDDEN,
|
||||||
TakesValue("takesvalue") => Flags::TAKES_VAL,
|
TakesValue("takesvalue") => Flags::TAKES_VAL,
|
||||||
UseValueDelimiter("usevaluedelimiter") => Flags::USE_DELIM,
|
UseValueDelimiter("usevaluedelimiter") => Flags::USE_DELIM,
|
||||||
|
@ -100,13 +99,6 @@ pub enum ArgSettings {
|
||||||
Multiple,
|
Multiple,
|
||||||
/// Forbids an arg from accepting empty values such as `""`
|
/// Forbids an arg from accepting empty values such as `""`
|
||||||
ForbidEmptyValues,
|
ForbidEmptyValues,
|
||||||
/// Deprecated, this is now the default, see [`ArgSettings::ForbidEmptyValues`] for the
|
|
||||||
/// opposite.
|
|
||||||
#[deprecated(
|
|
||||||
since = "3.0.0",
|
|
||||||
note = "This is now the default see [`ArgSettings::ForbidEmptyValues`] for the opposite."
|
|
||||||
)]
|
|
||||||
EmptyValues,
|
|
||||||
/// Hides an arg from the help message
|
/// Hides an arg from the help message
|
||||||
Hidden,
|
Hidden,
|
||||||
/// Allows an argument to take a value (such as `--option value`)
|
/// Allows an argument to take a value (such as `--option value`)
|
||||||
|
|
Loading…
Add table
Reference in a new issue