|
#include <CATCmdLine.h>
Each command entry is one of the following:
Tables should begin with an operand for the executable itself, and end with an entry where CmdSwitch is -1.
Operands MUST have the following:
If a switch takes and argument, ArgOptDescId should be valid. Otherwise it should be 0.
CmdGroup specifies a group of entries that are mutually exclusive. A CmdGroup of 0 indicates that the command is *not* part of a group. Any entries sharing the same CmdGroup value are in the same group.
Entries and CmdGroup IDs should be in order.
If a CmdGroup is required, set the Required flag on all entries. Otherwise, do not set the flag on *any* entries.
Definition at line 61 of file CATCmdLine.h.
Public Attributes | |
| CATWChar | CmdSwitch |
| 0 indicates operand, -1 indicates end of table. | |
| CATInt32 | CmdGroup |
| Specifies mutually exclusive cmd group. | |
| CATBool | Required |
| If true, the argument is required. | |
| CATBool | TakesArg |
| must be false for operands, otherwise true if switch takes arg | |
| CATCMDFUNC | Callback |
| optional callback function | |
| CATUInt32 | SwitchFlag |
| optional flag to set for argument, | |
| CATResult | ArgOptDescId |
| ID of string for argument/operand description. | |
| CATResult | DescriptionId |
| ID of string for verbose description of operand/argument. | |
1.5.4