Add parent-window option (#2089)

This commit is contained in:
Daniel 2020-10-19 01:08:02 -04:00 committed by GitHub
parent acec41685e
commit 444810d3dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,11 +18,16 @@ Args::Args(const QApplication &app)
// Used internally by app to restart after unexpected crashes // Used internally by app to restart after unexpected crashes
QCommandLineOption crashRecoveryOption("crash-recovery"); QCommandLineOption crashRecoveryOption("crash-recovery");
crashRecoveryOption.setHidden(true); crashRecoveryOption.setFlags(QCommandLineOption::HiddenFromHelp);
// Added to ignore the parent-window option passed during native messaging
QCommandLineOption parentWindowOption("parent-window");
parentWindowOption.setFlags(QCommandLineOption::HiddenFromHelp);
parser.addOptions({ parser.addOptions({
{{"v", "version"}, "Displays version information."}, {{"v", "version"}, "Displays version information."},
crashRecoveryOption, crashRecoveryOption,
parentWindowOption,
}); });
parser.addOption(QCommandLineOption( parser.addOption(QCommandLineOption(
{"c", "channels"}, {"c", "channels"},