comm_option_s Struct Reference

Command for interactive mode in cli. More...

#include <cli.h>


Detailed Description

Command for interactive mode in cli.

See the cli class for more details.

Definition at line 112 of file cli.h.


Data Fields

char shrt
 Short option ('\0' for none, must be unique if present).
std::string lng
 Long option (must be specified and must be unique).
std::string desc
 Description for help.
int min_parms
 Minimum number of parameters (0 for none, -1 for variable).
int max_parms
 Maximum number of parameters (0 for none, -1 for variable).
std::string parm_desc
 Description of parameters.
std::string help
 The help description.
comm_option_functfunc
 The pointer to the function to be called (or 0 for no function).
int type
 Type: command-line parameter, command, or both.

The documentation for this struct was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page