diff --git a/Cargo.toml b/Cargo.toml index b46151df..6883eebd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,6 +49,7 @@ pre-release-replacements = [ {file="CHANGELOG.md", search="", replace="\n## [Unreleased] - ReleaseDate\n", exactly=1}, {file="CHANGELOG.md", search="", replace="\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] diff --git a/README.md b/README.md index 3f95fb0f..0bc9d423 100644 --- a/README.md +++ b/README.md @@ -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 [..]