Skip to content

Commit 190a017

Browse files
authored
Migrate CLI argument parse to the clap derive API (#2390)
* Migrate CLI argument parsing to the derive API * Fix docs * Fix tests * Use `override_usage` * Update changelog
1 parent 758ec87 commit 190a017

File tree

5 files changed

+643
-858
lines changed

5 files changed

+643
-858
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@
161161
* Updated the `clang-sys` crate version to 1.4.0 to support clang 15.
162162
* The return type is now ommited in signatures of functions returning `void`.
163163
* Updated the `clap` dependency for `bindgen-cli` to 4.
164+
* Rewrote the `bindgen-cli` argument parser which could introduce unexpected
165+
behavior changes.
164166

165167
## Removed
166168

Cargo.lock

+51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ name = "bindgen"
2323
[dependencies]
2424
bindgen = { path = "../bindgen", version = "=0.63.0" }
2525
shlex = "1"
26-
clap = "4"
26+
clap = { version = "4", features = ["derive"] }
2727
env_logger = { version = "0.9.0", optional = true }
2828
log = { version = "0.4", optional = true }
2929

0 commit comments

Comments
 (0)