mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
docs(tutorial): Update for new API
This commit is contained in:
parent
3ded927662
commit
8dde489e3a
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ NAME: "bob"
|
||||||
### Enumerated values
|
### Enumerated values
|
||||||
|
|
||||||
If you have arguments of specific values you want to test for, you can use the
|
If you have arguments of specific values you want to test for, you can use the
|
||||||
`Arg::possible_values()`.
|
`PossibleValuesParser` or `Arg::value_parser(["val1", ...])` for short.
|
||||||
|
|
||||||
This allows you specify the valid values for that argument. If the user does not use one of
|
This allows you specify the valid values for that argument. If the user does not use one of
|
||||||
those specific values, they will receive a graceful exit with error message informing them
|
those specific values, they will receive a graceful exit with error message informing them
|
||||||
|
|
Loading…
Reference in a new issue