Commit ac9b6f87 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/app/App): disable command line option

parent e97d7ec9
......@@ -274,6 +274,13 @@ bool App::hasFocus () const {
// -----------------------------------------------------------------------------
void App::createParser () {
// TODO: Remove me in the future.
static const char *disabledOptions[] = {
QT_TR_NOOP("commandLineOptionCmd"),
QT_TR_NOOP("commandLineOptionCmdArg")
};
(void)disabledOptions;
if (mParser)
delete mParser;
......@@ -288,8 +295,10 @@ void App::createParser () {
{ "iconified", tr("commandLineOptionIconified") },
#endif // ifndef Q_OS_MACOS
{ "self-test", tr("commandLineOptionSelfTest") },
{ { "V", "verbose" }, tr("commandLineOptionVerbose") },
{ { "c", "cmd" }, tr("commandLineOptionCmd"), tr("commandLineOptionCmdArg") }
{ { "V", "verbose" }, tr("commandLineOptionVerbose") }
// TODO: Enable me in future version!
// ,
// { { "c", "cmd" }, tr("commandLineOptionCmd"), tr("commandLineOptionCmdArg") }
});
}
......
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