Added output option for debug statements to the command line
This commit is contained in:
parent
8aa0430834
commit
ea76d0e8d2
7
main.cpp
7
main.cpp
@ -116,6 +116,9 @@ int main(int argc, char *argv[])
|
|||||||
auto help_option = parser.addHelpOption ();
|
auto help_option = parser.addHelpOption ();
|
||||||
auto version_option = parser.addVersionOption ();
|
auto version_option = parser.addVersionOption ();
|
||||||
|
|
||||||
|
QCommandLineOption output_option(QStringList() << "o" << "output", "Write debug statements into <file>.", "file");
|
||||||
|
parser.addOption (output_option);
|
||||||
|
|
||||||
// support for multiple instances running from a single installation
|
// support for multiple instances running from a single installation
|
||||||
QCommandLineOption rig_option (QStringList {} << "r" << "rig-name"
|
QCommandLineOption rig_option (QStringList {} << "r" << "rig-name"
|
||||||
, a.translate ("main", "Where <rig-name> is for multi-instance support.")
|
, a.translate ("main", "Where <rig-name> is for multi-instance support.")
|
||||||
@ -151,6 +154,10 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(parser.isSet(output_option)){
|
||||||
|
new TraceFile(parser.value(output_option));
|
||||||
|
}
|
||||||
|
|
||||||
QStandardPaths::setTestModeEnabled (parser.isSet (test_option));
|
QStandardPaths::setTestModeEnabled (parser.isSet (test_option));
|
||||||
|
|
||||||
// support for multiple instances running from a single installation
|
// support for multiple instances running from a single installation
|
||||||
|
Loading…
Reference in New Issue
Block a user