I'm trying to parse the following command line input:

Qt Code:
  1. ./qtProgram --arguments first second third
To copy to clipboard, switch view to plain text mode 

I've looked at the documentation for QCommandLineParser and the provided example, but they only address when the command line argument has one value.

There is a QCommandLineParser function called "values" that returns a QStringList, which looked promising, but it only returns a list of one (and it's "first"). How do I set up the QCommandLineOption to pull all of them into a QStringList?

Qt Code:
  1. ...
  2.  
  3. QCommandLineOption argumentOption(QStringList() << "a" << "arguments",
  4. "Parse the following arguments <arguments>.",
  5. "none");
  6. parser.addOption(argumentOption);
  7.  
  8. ...
  9.  
  10. QStringList argumentList = parser.values(argumentOption); // Size is one, value is "first"
To copy to clipboard, switch view to plain text mode