mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
Merge pull request #3195 from bestouff/patch-1
docs: More explicit "derive" feature
This commit is contained in:
commit
a861053928
2 changed files with 6 additions and 1 deletions
|
@ -49,6 +49,7 @@ pre-release-replacements = [
|
|||
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
|
||||
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/clap-rs/clap/compare/{{tag_name}}...HEAD", exactly=1},
|
||||
{file="README.md", search="github.com/clap-rs/clap/blob/[^/]+/", replace="github.com/clap-rs/clap/blob/{{tag_name}}/", exactly=9, prerelease = true},
|
||||
{file="README.md", search="version = \"[a-z0-9\\.-]+\"", replace="version = \"{{version}}\"", exactly=1},
|
||||
]
|
||||
|
||||
[features]
|
||||
|
|
|
@ -56,7 +56,11 @@ fn main() {
|
|||
}
|
||||
}
|
||||
```
|
||||
*(note: requires feature `derive`)*
|
||||
Add this to `Cargo.toml`:
|
||||
```toml
|
||||
[dependencies]
|
||||
clap = { version = "3.0.0-rc.7", features = ["derive"] }
|
||||
```
|
||||
```bash
|
||||
$ demo --help
|
||||
clap [..]
|
||||
|
|
Loading…
Reference in a new issue