Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

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 *in_option_name, const char *in_option_letter, const char *in_description, bool in_required=false, CommandOption **pp_next=&DefaultCommandOptionList)
 CommandOptionRest contructor. More...


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 *   in_option_name,
const char *   in_option_letter,
const char *   in_description,
bool   in_required = false,
CommandOption **   pp_next = & DefaultCommandOptionList
 

CommandOptionRest contructor.

This sets the option_type for this object to Trailing.

Parameters:
in_option_name   long option name
in_option_letter   short letter name
in_description   short description of the option
in_required   true if option is required
pp_next   the linked list header


The documentation for this class was generated from the following file:
Generated at Fri Dec 21 08:31:33 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001