clap/tests
Ed Page 85ad452c9b fix!: Remove Arg::rwquire_value_delimiter
In clap v3, `require_value_delimiter` activated an alternative parse
mode where
- `multiple_values` meant "multiple values within a single arg"
- `number_of_values` having no parse impact, only validation impact
- `value_names` being delimited values

For unbounded `number_of_values`, this is exactly what `value_delimiter`
provides.  The only value is if someone wanted `value_name` to be
`<file1>,<file2>,...` which can be useful and we might look into adding
back in.

Alternatively, this could be used for cases like key-value pairs but
that has issues like not allowing the delimiter in the value which might
be ok in some cases but not others.  We already instead document that
people should instead use `ValueParser` for this case.

In removing this, we remove points of confusion at how the different
multiple values and delimited value calls interact with each other.  I
know I would set `require_value_delimiter(true).multiple_values(true)`
when it turns out all I needed was `value_delimiter(',')`.

This also reduces the API surface area which makes it easier to discover
what features we do provide.

While this isn't big, this is also yet another small step towards
reducing binary size and compile times.
2022-08-03 21:26:36 -05:00
..
builder fix!: Remove Arg::rwquire_value_delimiter 2022-08-03 21:26:36 -05:00
derive fix!: Rename Arg::number_of_values to Arg::num_args 2022-08-03 14:45:47 -05:00
derive_ui feat(clap_derive): Add default_values_t and default_values_os_t 2022-07-25 10:14:04 -07:00
ui fix(help)!: Make DeriveDisplayOrder the default, removing it 2022-07-22 15:52:03 -05:00
derive_ui.rs fix!: Remove unstable-v4 feature gate 2022-07-22 11:34:06 -05:00
examples.rs feat(multicall): Stablize multicall 2022-05-20 12:20:40 -05:00
macros.rs fix!: Remove rest of deprecated APIs 2022-08-01 15:21:33 -05:00
ui.rs feat(multicall): Stablize multicall 2022-05-20 12:20:40 -05:00