comm_option_s Struct Reference

#include <cli.h>

Inheritance diagram for comm_option_s:

comm_option

Detailed Description

Command for interactive mode in cli.

Definition at line 112 of file cli.h.


Data Fields

char shrt
 Short option ('\0' for none).
std::string lng
 Long option (must be specified).
std::string desc
 Description for help (default is empty string).
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 (default is empty string).
std::string help
 The help description (default is empty string).
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 (default command).

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