Classes | |
struct | wxCmdLineEntryDesc |
The structure wxCmdLineEntryDesc is used to describe a command line switch, option or parameter. More... | |
class | wxCmdLineArg |
The interface wxCmdLineArg provides information for an instance of argument passed on command line. More... | |
class | wxCmdLineArgs |
An ordered collection of wxCmdLineArg providing an iterator to enumerate the arguments passed on command line. More... | |
class | wxCmdLineParser |
wxCmdLineParser is a class for parsing the command line. More... | |
enum wxCmdLineEntryFlags |
wxCmdLineEntryDesc::flags field is a combination of these bit masks.
Notice that by default (i.e. if flags are just 0), options are optional (sic) and each call to wxCmdLineParser::AddParam() allows one more parameter - this may be changed by giving non-default flags to it, i.e. use wxCMD_LINE_OPTION_MANDATORY
to require that the option is given and wxCMD_LINE_PARAM_OPTIONAL
to make a parameter optional.
Also, wxCMD_LINE_PARAM_MULTIPLE
may be specified if the programs accepts a variable number of parameters - but it only can be given for the last parameter in the command line description. If you use this flag, you will probably need to use wxCmdLineEntryDesc::GetParamCount() to retrieve the number of parameters effectively specified after calling wxCmdLineEntryDesc::Parse().
wxCMD_LINE_NEEDS_SEPARATOR
can be specified to require a separator (either a colon, an equal sign or white space) between the option name and its value. By default, no separator is required.
wxCMD_LINE_SWITCH_NEGATABLE
can be specified if you want to allow the user to specify the switch in both normal form and in negated one (e.g. /R-). You will need to use wxCmdLineParser::FoundSwitch() to distinguish between the normal and negated forms of the switch. This flag is new since wxWidgets 2.9.2.
wxCMD_LINE_HIDDEN
can be specified for arguments that should exist but are not to be included in the output of Usage(). These could be, for example, diagnostics switches that are not useful to the end user. This flags is new since wxWidgets 3.1.1.
enum wxCmdLineEntryType |
The type of a command line entity used for wxCmdLineEntryDesc::kind.
Enumerator | |
---|---|
wxCMD_LINE_SWITCH | A boolean argument of the program; e.g. |
wxCMD_LINE_OPTION | An argument with an associated value; e.g.
|
wxCMD_LINE_PARAM | A parameter: a required program argument. |
wxCMD_LINE_USAGE_TEXT | Additional usage text. See wxCmdLineParser::AddUsageText. |
wxCMD_LINE_NONE | Use this to terminate the list. |
enum wxCmdLineParamType |
The possible values of wxCmdLineEntryDesc::type which specify the type of the value accepted by an option.
Enumerator | |
---|---|
wxCMD_LINE_VAL_STRING | |
wxCMD_LINE_VAL_NUMBER | |
wxCMD_LINE_VAL_DATE | |
wxCMD_LINE_VAL_DOUBLE | |
wxCMD_LINE_VAL_NONE |
enum wxCmdLineSplitType |
Flags determining wxCmdLineParser::ConvertStringToArgs() behaviour.
Enumerator | |
---|---|
wxCMD_LINE_SPLIT_DOS | |
wxCMD_LINE_SPLIT_UNIX |
enum wxCmdLineSwitchState |
The state of a switch as returned by wxCmdLineParser::FoundSwitch().