clap/examples/tutorial_builder
Ed Page c9eef44213 fix: Make arg!(--flag <value>) optional by default
This was ported over from the usage parser which modeled after docopt.
We just never got around to implementing the rest of the syntax.

However, when considering this as a standalone feature, an
`arg!(--flag <value>)`, outside of other context, should be optional.
This is how the help would display it.

Fixes #4206
2022-09-12 17:10:01 -05:00
..
01_quick.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
01_quick.rs docs(tutorial): Use arg!s action selection 2022-08-08 14:36:29 -05:00
02_app_settings.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
02_app_settings.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
02_apps.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
02_apps.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
02_crate.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
02_crate.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
03_01_flag_bool.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
03_01_flag_bool.rs feat(parser): Provide convenience for SetTrue 2022-09-01 19:40:56 -05:00
03_01_flag_count.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
03_01_flag_count.rs feat(parser): Provide convenience accessor for Counts 2022-09-01 19:19:55 -05:00
03_02_option.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
03_02_option.rs docs(tutorial): Focus on actions, not macros 2022-08-09 10:23:23 -05:00
03_02_option_mult.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
03_02_option_mult.rs docs(tutorial): Further expand on actions 2022-08-09 16:33:02 -05:00
03_03_positional.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
03_03_positional.rs docs(tutorial): Focus on actions, not macros 2022-08-09 10:23:23 -05:00
03_03_positional_mult.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
03_03_positional_mult.rs docs(tutorial): Further expand on actions 2022-08-09 16:33:02 -05:00
03_04_subcommands.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
03_04_subcommands.rs docs: Move everything to docs.rs 2022-07-19 13:30:38 -05:00
03_05_default_values.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
03_05_default_values.rs docs(tutorial): Focus on actions, not macros 2022-08-09 10:23:23 -05:00
04_01_enum.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
04_01_enum.rs fix!: Remove lifetime from PossibleValue 2022-08-19 12:44:29 -05:00
04_01_possible.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
04_01_possible.rs docs: Move everything to docs.rs 2022-07-19 13:30:38 -05:00
04_02_parse.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
04_02_parse.rs docs: Move everything to docs.rs 2022-07-19 13:30:38 -05:00
04_02_validate.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
04_02_validate.rs docs: Move everything to docs.rs 2022-07-19 13:30:38 -05:00
04_03_relations.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
04_03_relations.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
04_04_custom.md fix(help): Make output more dense 2022-09-07 17:13:55 -05:00
04_04_custom.rs fix: Make arg!(--flag <value>) optional by default 2022-09-12 17:10:01 -05:00
05_01_assert.rs fix: Switch to owned types 2022-08-22 14:55:55 -05:00