Merge branch 'importtrace-reparse-parameters'

This commit is contained in:
Horst Schirmeier
2013-10-23 15:51:21 +02:00

View File

@ -156,12 +156,11 @@ int main(int argc, char *argv[]) {
std::cerr << "Cannot call importers command line initialization!" << std::endl;
exit(-1);
}
// Since the importer might have added command line options, we need to
// reparse all arguments.
cmd.parse();
if (cmd[HELP]) {
// Since the importer might have added command line options,
// we need to reparse all arguments in order to prevent a
// segfault within optionparser
cmd.parse();
cmd.printUsage();
exit(0);
}