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
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({
{{"v", "version"}, "Displays version information."},
crashRecoveryOption,
parentWindowOption,
});
parser.addOption(QCommandLineOption(
{"c", "channels"},