VivoQuant 6.5.0
Loading...
Searching...
No Matches
Parser Class Reference

Description

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.

Member Function Documentation

◆ parse()

ParseResult parse ( Array< string > arguments)

Parse a full argument list.

Parameters
argumentsCommand line arguments, starting with the program name (e.g. QCoreApplication::arguments()).