5
5
6
6
[ ![ Crates.io] ( https://img.shields.io/crates/v/clap?style=flat-square )] ( https://crates.io/crates/clap )
7
7
[ ![ Crates.io] ( https://img.shields.io/crates/d/clap?style=flat-square )] ( https://crates.io/crates/clap )
8
- [ ![ License] ( https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square )] ( https://github.com/clap-rs/clap/blob/v3.0.11 /LICENSE-APACHE )
9
- [ ![ License] ( https://img.shields.io/badge/license-MIT-blue?style=flat-square )] ( https://github.com/clap-rs/clap/blob/v3.0.11 /LICENSE-MIT )
8
+ [ ![ License] ( https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square )] ( https://github.com/clap-rs/clap/blob/v3.0.12 /LICENSE-APACHE )
9
+ [ ![ License] ( https://img.shields.io/badge/license-MIT-blue?style=flat-square )] ( https://github.com/clap-rs/clap/blob/v3.0.12 /LICENSE-MIT )
10
10
[ ![ Build Status] ( https://img.shields.io/github/workflow/status/clap-rs/clap/CI/staging?style=flat-square )] ( https://github.com/clap-rs/clap/actions/workflows/ci.yml?query=branch%3Astaging )
11
11
[ ![ Coverage Status] ( https://img.shields.io/coveralls/github/clap-rs/clap/master?style=flat-square )] ( https://coveralls.io/github/clap-rs/clap?branch=master )
12
12
[ ![ Contributors] ( https://img.shields.io/github/contributors/clap-rs/clap?style=flat-square )] ( https://github.com/clap-rs/clap/graphs/contributors )
13
13
14
14
Dual-licensed under [ Apache 2.0] ( LICENSE-APACHE ) or [ MIT] ( LICENSE-MIT ) .
15
15
16
16
1 . [ About] ( #about )
17
- 2 . Tutorial: [ Builder API] ( https://github.com/clap-rs/clap/blob/v3.0.11 /examples/tutorial_builder/README.md ) , [ Derive API] ( https://github.com/clap-rs/clap/blob/v3.0.11 /examples/tutorial_derive/README.md )
18
- 3 . [ Examples] ( https://github.com/clap-rs/clap/blob/v3.0.11 /examples/README.md )
17
+ 2 . Tutorial: [ Builder API] ( https://github.com/clap-rs/clap/blob/v3.0.12 /examples/tutorial_builder/README.md ) , [ Derive API] ( https://github.com/clap-rs/clap/blob/v3.0.12 /examples/tutorial_derive/README.md )
18
+ 3 . [ Examples] ( https://github.com/clap-rs/clap/blob/v3.0.12 /examples/README.md )
19
19
4 . [ API Reference] ( https://docs.rs/clap )
20
- - [ Derive Reference] ( https://github.com/clap-rs/clap/blob/v3.0.11 /examples/derive_ref/README.md )
20
+ - [ Derive Reference] ( https://github.com/clap-rs/clap/blob/v3.0.12 /examples/derive_ref/README.md )
21
21
- [ Feature Flags] ( #feature-flags )
22
- 5 . [ CHANGELOG] ( https://github.com/clap-rs/clap/blob/v3.0.11 /CHANGELOG.md )
23
- 6 . [ FAQ] ( https://github.com/clap-rs/clap/blob/v3.0.11 /docs/FAQ.md )
22
+ 5 . [ CHANGELOG] ( https://github.com/clap-rs/clap/blob/v3.0.12 /CHANGELOG.md )
23
+ 6 . [ FAQ] ( https://github.com/clap-rs/clap/blob/v3.0.12 /docs/FAQ.md )
24
24
7 . [ Questions & Discussions] ( https://github.com/clap-rs/clap/discussions )
25
- 8 . [ Contributing] ( https://github.com/clap-rs/clap/blob/v3.0.11 /CONTRIBUTING.md )
25
+ 8 . [ Contributing] ( https://github.com/clap-rs/clap/blob/v3.0.12 /CONTRIBUTING.md )
26
26
8 . [ Sponsors] ( #sponsors )
27
27
28
28
## About
@@ -32,7 +32,7 @@ Create your command-line parser, with all of the bells and whistles, declarative
32
32
### Example
33
33
34
34
This uses our
35
- [ Derive API] ( https://github.com/clap-rs/clap/blob/v3.0.11 /examples/derive_ref/README.md )
35
+ [ Derive API] ( https://github.com/clap-rs/clap/blob/v3.0.12 /examples/derive_ref/README.md )
36
36
which provides access to the [ Builder API] ( https://docs.rs/clap ) as attributes on a ` struct ` :
37
37
38
38
<!-- Copied from examples/demo.{rs,md} -->
@@ -63,7 +63,7 @@ fn main() {
63
63
Add this to ` Cargo.toml ` :
64
64
``` toml
65
65
[dependencies ]
66
- clap = { version = " 3.0.11 " , features = [" derive" ] }
66
+ clap = { version = " 3.0.12 " , features = [" derive" ] }
67
67
```
68
68
``` bash
69
69
$ demo --help
@@ -104,12 +104,12 @@ CLI parsers optimized for other use cases.
104
104
105
105
### Selecting an API
106
106
107
- Why use the declarative [ Derive API] ( https://github.com/clap-rs/clap/blob/v3.0.11 /examples/tutorial_derive/README.md ) :
107
+ Why use the declarative [ Derive API] ( https://github.com/clap-rs/clap/blob/v3.0.12 /examples/tutorial_derive/README.md ) :
108
108
- Easier to read, write, and modify
109
109
- Easier to keep the argument declaration and reading of argument in sync
110
110
- Easier to reuse, e.g. [ clap-verbosity-flag] ( https://crates.io/crates/clap-verbosity-flag )
111
111
112
- Why use the procedural [ Builder API] ( https://github.com/clap-rs/clap/blob/v3.0.11 /examples/tutorial_builder/README.md ) :
112
+ Why use the procedural [ Builder API] ( https://github.com/clap-rs/clap/blob/v3.0.12 /examples/tutorial_builder/README.md ) :
113
113
- Faster compile times if you aren't already using other procedural macros
114
114
- More flexible, e.g. you can look up how many times an argument showed up,
115
115
what its values were, and what were the indexes of those values. The Derive
0 commit comments