Skip to content
Snippets Groups Projects

also parse command line options in batch mode.

Merged Martin Schultz requested to merge fixBatchCommandLine into master
1 file
+ 17
0
Compare changes
  • Side-by-side
  • Inline
+ 17
0
@@ -596,6 +596,23 @@ int main(int argc, char **argv)
@@ -596,6 +596,23 @@ int main(int argc, char **argv)
QCoreApplication::setApplicationName(TOSTRING(PRODUCT_STRING));
QCoreApplication::setApplicationName(TOSTRING(PRODUCT_STRING));
QCoreApplication::setApplicationVersion(OpenFlipper::Options::coreVersion());
QCoreApplication::setApplicationVersion(OpenFlipper::Options::coreVersion());
 
switch (parseCommandLine(parser, &errorMessage)) {
 
case CommandLineOk:
 
break;
 
case CommandLineError:
 
fputs(qPrintable(errorMessage), stderr);
 
fputs("\n\n", stderr);
 
fputs(qPrintable(parser.helpText()), stderr);
 
return 1;
 
case CommandLineVersionRequested:
 
printf("%s %s\n", qPrintable(QCoreApplication::applicationName()),
 
qPrintable(QCoreApplication::applicationVersion()));
 
return 0;
 
case CommandLineHelpRequested:
 
parser.showHelp();
 
Q_UNREACHABLE();
 
}
 
// create widget ( this also reads the ini files )
// create widget ( this also reads the ini files )
Core * w = new Core( );
Core * w = new Core( );
Loading