docs: Help people through Action changes

This commit is contained in:
Ed Page 2022-09-08 16:02:12 -05:00
parent 6f185a8704
commit fadcaf9860

View file

@ -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