clap/tests/fixtures
Ed Page bd25b5f615 fix(yaml): Don't panic on multiple groups
Because we gradually build the `ArgGroup` as we parse the YAML, we don't
use `ArgGroup::new`.  Clap3 introduced an internal `id` in addition to
the public `name` and it appears that this custom initialization code
was not updated.

This shows the problem with publically exposing `impl Default`.
Choices:
- Remove `impl Default`
  - Always valid
  - Requires spreading invariants
  - Callers can't implement code the same way we do
- Add `ArgGroup::name`
  - Can be constructed in an invalid state
  - Centralizes invariants
  - A caller could implement code like the yaml logic

I decided to go with `ArgGroup::name`.

Fixes #2719
2021-08-18 15:16:44 -05:00
..
app.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
app_2space.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
app_field_not_string.yaml Refactor creation of App and Arg from YAML 2021-07-25 15:24:43 -07:00
app_regex.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
app_regex_invalid.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
app_setting_invalid.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
arg_field_not_string.yaml Refactor creation of App and Arg from YAML 2021-07-25 15:24:43 -07:00
arg_not_hash.yaml Refactor creation of App and Arg from YAML 2021-07-25 15:24:43 -07:00
arg_setting_invalid.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
extra_fields.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
extra_fields_invalid_app.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
extra_fields_invalid_arg.yaml Ignore extra fields in YAML only when specified 2021-06-01 21:59:44 +01:00
field_not_hash.yaml Refactor creation of App and Arg from YAML 2021-07-25 15:24:43 -07:00
multiple_groups.yaml fix(yaml): Don't panic on multiple groups 2021-08-18 15:16:44 -05:00
name_not_string.yaml Refactor creation of App and Arg from YAML 2021-07-25 15:24:43 -07:00
not_hash.yaml Refactor creation of App and Arg from YAML 2021-07-25 15:24:43 -07:00