|
VivoQuant 6.5.0
|
Defines VivoQuant's command line options and parses them.
Unlike QCommandLineParser::process(), parse() never prints anything or exits the process, so the caller decides how help, version and errors reach the user (see writeOutput() and writeError()), and the parsing can be unit tested.
Public Member Functions | |
| ParseResult | parse (Array< string > arguments) |
| Parse a full argument list. | |
| string | helpText () |
| Usage text in the usual "Usage: ... Options: ..." form, laid out for a monospaced terminal. | |
| string | versionText () |
| "<application name> <application version>", as QCommandLineParser's –version prints it. | |
| ParseResult parse | ( | Array< string > | arguments | ) |
Parse a full argument list.
| arguments | Command line arguments, starting with the program name (e.g. QCoreApplication::arguments()). |