DOKK / manpages / debian 11 / libcommoncpp2-doc / ost_CommandOptionNoArg.3.en
ost::CommandOptionNoArg(3) Library Functions Manual ost::CommandOptionNoArg(3)

ost::CommandOptionNoArg - CommandOption type for flags.

#include <cmdoptns.h>

Inherits ost::CommandOption.


CommandOptionNoArg (const char *inOptionName, const char *inOptionLetter, const char *inDescription, bool inRequired=false, CommandOption **ppNext=&defaultCommandOptionList)
CommandOptionArg contructor. virtual void foundOption (CommandOptionParse *cop, const char *value=0)
CommandOptionNoArg::foundOption will evpect a nil 'value' passed in.


int numSet
The number of times this value has been set.

CommandOption type for flags.

Examples
cmdlineopt.cpp.

CommandOptionArg contructor. This sets the optionType for this object to NoArg.

Parameters

inOptionName long option name
inOptionLetter short letter name
inDescription short description of the option
inRequired true if option is required
ppNext the linked list header

CommandOptionNoArg::foundOption will evpect a nil 'value' passed in.

Reimplemented from ost::CommandOption.

The number of times this value has been set.

Generated automatically by Doxygen for GNU CommonC++ from the source code.

Sun Dec 27 2020 GNU CommonC++