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
which provides access to the [Builder API](https://github.com/clap-rs/clap/blob/v3.2.7/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.2.8/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.2.7", features = ["derive"] }
66
+
clap = { version = "3.2.8", 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.2.7/examples/tutorial_derive/README.md):
106
+
Why use the declarative [Derive API](https://github.com/clap-rs/clap/blob/v3.2.8/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.2.7/examples/tutorial_builder/README.md):
111
+
Why use the procedural [Builder API](https://github.com/clap-rs/clap/blob/v3.2.8/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