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 2289ad09..4f75424a 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -503,6 +503,9 @@ where
Arg::with_name("respect-cxx-access-specs")
.long("respect-cxx-access-specs")
.help("Makes generated bindings `pub` only for items if the items are publically accessible in C++."),
+ Arg::with_name("translate-enum-integer-types")
+ .long("translate-enum-integer-types")
+ .help("Always translate enum integer types to native Rust integer types."),
]) // .args()
.get_matches_from(args);
@@ -929,6 +932,10 @@ where
builder = builder.respect_cxx_access_specs(true);
}
+ if matches.is_present("translate-enum-integer-types") {
+ builder = builder.translate_enum_integer_types(true);
+ }
+
let verbose = matches.is_present("verbose");
Ok((builder, output, verbose))