summaryrefslogtreecommitdiff
path: root/src/options.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/options.rs b/src/options.rs
index 01982f13..b630bb4b 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -383,6 +383,9 @@ where
"Do not record matching items in the regex sets. \
This disables reporting of unused items.",
),
+ Arg::with_name("size_t-is-usize")
+ .long("size_t-is-usize")
+ .help("Translate size_t to usize."),
Arg::with_name("no-rustfmt-bindings")
.long("no-rustfmt-bindings")
.help("Do not format the generated bindings with rustfmt."),
@@ -763,6 +766,10 @@ where
builder = builder.record_matches(false);
}
+ if matches.is_present("size_t-is-usize") {
+ builder = builder.size_t_is_usize(true);
+ }
+
let no_rustfmt_bindings = matches.is_present("no-rustfmt-bindings");
if no_rustfmt_bindings {
builder = builder.rustfmt_bindings(false);