Details
-
Suggestion
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.8.2, 6.9.0 Beta2
-
None
Description
My code contains problem and I get warning message, but this message is not clear. I suggest to change warning message to make it more user-friendly.
QCommandLineParser parser; QCommandLineOption NumOption(QStringList() << "n" << "num", "help text"); parser.addOption(NumOption); const QString numStr= parser.value(NumOption); //warning 'option not expecting values' here
To start app I use
./app --num 123
QCommandLineParser: option not expecting values: "num"
Solution on forum. But I suggest to change warning message from QCommandLineParser: option not expecting values: "num" to, for example, QCommandLineParser: you should also set valueName for: "num"