mirror of
https://github.com/arcan1s/queued.git
synced 2026-11-18 17:49:30 +00:00
implement priority supprt for users
This commit is contained in:
1 parent
881abd4c51
commit
bfea1635f9
21 files changed
+163
-120
No files matched your search
@@ -65,27 +65,21 @@ int main(int argc, char *argv[])
|
||||
parser.addHelpOption();
|
||||
parser.addVersionOption();
|
||||
// info
|
||||
QCommandLineOption infoOption(QStringList() << "i"
|
||||
<< "info",
|
||||
"Show additional info.");
|
||||
QCommandLineOption infoOption({"i", "info"}, "Show additional info.");
|
||||
parser.addOption(infoOption);
|
||||
|
||||
// configuration option
|
||||
QCommandLineOption configOption(QStringList() << "c"
|
||||
<< "config",
|
||||
QCommandLineOption configOption({"c", "config"},
|
||||
"Read initial configuration from file.",
|
||||
"config", QueuedSettings::defaultPath());
|
||||
parser.addOption(configOption);
|
||||
|
||||
// debug mode
|
||||
QCommandLineOption debugOption(QStringList() << "d"
|
||||
<< "debug",
|
||||
"Print debug information.");
|
||||
QCommandLineOption debugOption({"d", "debug"}, "Print debug information.");
|
||||
parser.addOption(debugOption);
|
||||
|
||||
// daemon mode
|
||||
QCommandLineOption daemonOption(QStringList() << "daemon",
|
||||
"Start detached.");
|
||||
QCommandLineOption daemonOption("daemon", "Start detached.");
|
||||
parser.addOption(daemonOption);
|
||||
|
||||
parser.process(app);
|
||||
|
||||
Reference in new issue
Block a user