You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ _gated behind `unstable-v4`_
27
27
<!-- next-header -->
28
28
## [Unreleased] - ReleaseDate
29
29
30
+
## [3.1.18] - 2022-05-10
31
+
30
32
### Fixes
31
33
32
34
- Fix deprecated `arg_enum!` for users migrating to clap3 (#3717)
@@ -3354,7 +3356,8 @@ Minimum version of Rust is now v1.13.0 (Stable)
3354
3356
***arg** allow lifetimes other than 'static in arguments ([9e8c1fb9](https://github.com/clap-rs/clap/commit/9e8c1fb9406f8448873ca58bab07fe905f1551e5))
which provides access to the [Builder API](https://github.com/clap-rs/clap/blob/v3.1.17/examples/tutorial_builder/README.md) as attributes on a `struct`:
which provides access to the [Builder API](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_builder/README.md) as attributes on a `struct`:
37
37
38
38
<!-- Copied from examples/demo.{rs,md} -->
39
39
```rust,no_run
@@ -63,7 +63,7 @@ fn main() {
63
63
Add this to `Cargo.toml`:
64
64
```toml
65
65
[dependencies]
66
-
clap = { version = "3.1.17", features = ["derive"] }
66
+
clap = { version = "3.1.18", features = ["derive"] }
67
67
```
68
68
```bash
69
69
$ demo --help
@@ -103,12 +103,12 @@ CLI parsers optimized for other use cases.
103
103
104
104
### Selecting an API
105
105
106
-
Why use the declarative [Derive API](https://github.com/clap-rs/clap/blob/v3.1.17/examples/tutorial_derive/README.md):
106
+
Why use the declarative [Derive API](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_derive/README.md):
107
107
- Easier to read, write, and modify
108
108
- Easier to keep the argument declaration and reading of argument in sync
109
109
- Easier to reuse, e.g. [clap-verbosity-flag](https://crates.io/crates/clap-verbosity-flag)
110
110
111
-
Why use the procedural [Builder API](https://github.com/clap-rs/clap/blob/v3.1.17/examples/tutorial_builder/README.md):
111
+
Why use the procedural [Builder API](https://github.com/clap-rs/clap/blob/v3.1.18/examples/tutorial_builder/README.md):
112
112
- Faster compile times if you aren't already using other procedural macros
113
113
- More flexible, e.g. you can look up how many times an argument showed up,
114
114
what its values were, and what were the indexes of those values. The Derive
0 commit comments