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.
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.
![]() |
[ top ] |