Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
parser.parse(appArgs); const QStringList args = parser.positionalArguments();
input: ./app arg1 -a opt1 => args = arg1, opt1 ./app arg -a opt1 arg1 => args = opt1, arg1
but I need: args only has the argument without the value of the option.
Can you show what you set up with QCommandLineParser::addOptions/QCommandLineParser::addPositionalArgument?
QCommandLineParser::addOptions
QCommandLineParser::addPositionalArgument
I setup addOptions and addPositionArgument after. Thanks so much!