Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

ost::CommandOptionRest Class Reference

It only makes sense to have a single one of these set and it is exclusive with CommandOptionCollect. CommandOption to take the rest of the command line. More...

#include <cmdoptns.h>

Inheritance diagram for ost::CommandOptionRest:

ost::CommandOptionWithArg ost::CommandOption List of all members.

Public Methods

 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. CommandOption to take the rest of the command line.

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.


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:
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


The documentation for this class was generated from the following file:
Generated on Thu Nov 21 12:28:33 2002 for GNU CommonC++ by doxygen1.2.18