Commit eb6a0953 authored by schultz's avatar schultz
Browse files

removed manual commandline parsing for batch command.

this probably breaks compatibility to undocumented writings like
--b --batch /batch etc.
parent ad7b8d4a
......@@ -428,19 +428,6 @@ int main(int argc, char **argv)
// Ugly command line parse to check if we run in batch mode or not.
// Qt parser needs either QApplication or QCoreApplication to work.
// But we need that option to decide which one to choose so ...
for (int i = 1; i < argc; i++) {
QString option = QString(argv[i]);
if (option.contains("batch") || option.contains("-b") ||
option.contains("--batch")) {
std::cerr << "Batch Mode started" << std::endl;
// Set organization and application names
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment