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.
enum wxCmdLineEntryType |
The type of a command line entity used for wxCmdLineEntryDesc::kind.
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.
enum wxCmdLineSplitType |
Flags determining wxCmdLineParser::ConvertStringToArgs() behaviour.
enum wxCmdLineSwitchState |
The state of a switch as returned by wxCmdLineParser::FoundSwitch().