cli: Generate parseres with the new ABI by default

This commit is contained in:
Max Brunsfeld 2019-12-06 11:51:55 -08:00
parent bd49fbab12
commit bea6e0e28b

View file

@ -41,7 +41,7 @@ fn run() -> error::Result<()> {
.about("Generate a parser")
.arg(Arg::with_name("grammar-path").index(1))
.arg(Arg::with_name("log").long("log"))
.arg(Arg::with_name("next-abi").long("next-abi"))
.arg(Arg::with_name("prev-abi").long("prev-abi"))
.arg(
Arg::with_name("report-states-for-rule")
.long("report-states-for-rule")
@ -154,11 +154,11 @@ fn run() -> error::Result<()> {
if matches.is_present("log") {
logger::init();
}
let next_abi = matches.is_present("next-abi");
let prev_abi = matches.is_present("prev-abi");
generate::generate_parser_in_directory(
&current_dir,
grammar_path,
next_abi,
!prev_abi,
report_symbol_name,
)?;
} else if let Some(matches) = matches.subcommand_matches("test") {