mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
CommandLineOptions: Don't exit on unknown option
Makes it possible to pass options to Chromium Closes #1952
This commit is contained in:
parent
f9e6a7911a
commit
ff3c45cafc
@ -1,6 +1,6 @@
|
||||
/* ============================================================
|
||||
* QupZilla - QtWebEngine based browser
|
||||
* Copyright (C) 2010-2015 David Rosca <nowrep@gmail.com>
|
||||
* Copyright (C) 2010-2016 David Rosca <nowrep@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -93,7 +93,9 @@ void CommandLineOptions::parseActions()
|
||||
parser.addOption(openWindowOption);
|
||||
parser.addOption(fullscreenOption);
|
||||
parser.addPositionalArgument(QSL("URL"), QSL("URLs to open"), QSL("[URL...]"));
|
||||
parser.process(QCoreApplication::arguments());
|
||||
|
||||
// parse() and not process() so we can pass arbitrary options to Chromium
|
||||
parser.parse(QCoreApplication::arguments());
|
||||
|
||||
if (parser.isSet(authorsOption)) {
|
||||
std::cout << "David Rosca <nowrep@gmail.com>" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user