diff options
Diffstat (limited to 'src/options.rs')
-rw-r--r-- | src/options.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/options.rs b/src/options.rs index b630bb4b..c2de1e5a 100644 --- a/src/options.rs +++ b/src/options.rs @@ -267,6 +267,11 @@ where names like \"bar\" instead of \"foo_bar\" for a nested \ definition \"struct foo { struct bar { } b; };\"." ), + Arg::with_name("disable-untagged-union") + .long("disable-untagged-union") + .help( + "Disable support for native Rust unions.", + ), Arg::with_name("ignore-functions") .long("ignore-functions") .help( @@ -667,6 +672,10 @@ where builder = builder.disable_nested_struct_naming(); } + if matches.is_present("disable-untagged-union") { + builder = builder.disable_untagged_union(); + } + if matches.is_present("ignore-functions") { builder = builder.ignore_functions(); } |