mirror of
https://github.com/arcan1s/queued.git
synced 2025-07-15 06:45:46 +00:00
implement priority supprt for users
This commit is contained in:
@ -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