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 a11f3ddd..83da21f4 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -515,6 +515,9 @@ where
Arg::new("vtable-generation")
.long("vtable-generation")
.help("Enables generation of vtable functions."),
+ Arg::new("sort-semantically")
+ .long("sort-semantically")
+ .help("Enables sorting of code generation in a predefined manner."),
Arg::new("V")
.long("version")
.help("Prints the version, and exits"),
@@ -1000,5 +1003,9 @@ where
builder = builder.vtable_generation(true);
}
+ if matches.is_present("sort-semantically") {
+ builder = builder.sort_semantically(true);
+ }
+
Ok((builder, output, verbose))
}