I used QCommandLineParser to parse app's agrument
input:Qt Code:
QCommandLineParser parser; parser.parse(qApp->arguments());To copy to clipboard, switch view to plain text mode
./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.
Bookmarks