GNU CommonC++
Public Member Functions

ost::CommandOptionRest Class Reference

It only makes sense to have a single one of these set and it is exclusive with CommandOptionCollect. More...

#include <cmdoptns.h>

Inheritance diagram for ost::CommandOptionRest:
ost::CommandOptionWithArg ost::CommandOption

List of all members.

Public Member Functions

 CommandOptionRest (const char *inOptionName, const char *inOptionLetter, const char *inDescription, bool inRequired=false, CommandOption **ppNext=&defaultCommandOptionList)
 CommandOptionRest contructor.

Detailed Description

It only makes sense to have a single one of these set and it is exclusive with CommandOptionCollect.

It is the option that takes the rest of the command line options that are not part of any other options. e.g. "strace -ofile command arg1 arg2". The "command arg1 arg2" part is placed in objects of this class.

CommandOption to take the rest of the command line

Examples:

cmdlineopt.cpp.


Constructor & Destructor Documentation

ost::CommandOptionRest::CommandOptionRest ( const char *  inOptionName,
const char *  inOptionLetter,
const char *  inDescription,
bool  inRequired = false,
CommandOption **  ppNext = &defaultCommandOptionList 
)

CommandOptionRest contructor.

This sets the optionType for this object to Trailing.

Parameters:
inOptionNamelong option name
inOptionLettershort letter name
inDescriptionshort description of the option
inRequiredtrue if option is required
ppNextthe linked list header

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