error if multiple -g options are given for abc

This commit is contained in:
N. Engelhardt 2020-01-06 19:10:13 +01:00
parent 89b88ea17f
commit fcc1c14adc
1 changed files with 2 additions and 0 deletions

View File

@ -1623,6 +1623,8 @@ struct AbcPass : public Pass {
continue;
}
if (arg == "-g" && argidx+1 < args.size()) {
if (g_arg_from_cmd)
log_cmd_error("Can only use -g once. Please combine.");
g_arg = args[++argidx];
g_argidx = argidx;
g_arg_from_cmd = true;