4#include <QCommandLineOption>
5#include <QCommandLineParser>
11QCommandLineOption verboseOption(
"verbose",
"Verbose mode. Prints out more information.");
17parser.
addOption({
"verbose",
"Verbose mode. Prints out more information."});
22parser.
addOption({{
"o",
"output"},
"Write generated data into <file>.",
"file"});
The QCommandLineOption class defines a possible command-line option. \inmodule QtCore.
The QCommandLineParser class provides a means for handling the command line options.
bool addOption(const QCommandLineOption &commandLineOption)
Adds the option option to look for while parsing.