mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
docs: Help people through Action changes
This commit is contained in:
parent
6f185a8704
commit
fadcaf9860
1 changed files with 2 additions and 2 deletions
|
@ -94,8 +94,8 @@ Steps:
|
|||
|
||||
0. [Upgrade to v3](https://github.com/clap-rs/clap/blob/v3-master/CHANGELOG.md#migrating) if you haven't already
|
||||
1. Add CLI tests (including example below), `-h` and `--help` output at a minimum (recommendation: [trycmd](https://docs.rs/trycmd/) for snapshot testing)
|
||||
2. Run `cargo check --features clap/deprecated` and resolve all deprecation warnings
|
||||
3. *If using Builder API*: Explicitly set the `arg.action(ArgAction::...)` on each argument
|
||||
2. *If using Builder API*: Explicitly set the `arg.action(ArgAction::...)` on each argument (`StoreValue` for options and `IncOccurrences` for flags)
|
||||
3. Run `cargo check --features clap/deprecated` and resolve all deprecation warnings
|
||||
4. Upgrade to v4
|
||||
5. Resolve compiler errors
|
||||
6. Resolve behavior changes, look over the "subtle changes" under BREAKING CHANGES
|
||||
|
|
Loading…
Reference in a new issue