more updates

This commit is contained in:
mes5k 2004-09-30 16:17:03 +00:00
parent bed8c016b5
commit 9a36a7d26f

View File

@ -87,18 +87,18 @@ Descriptions</a></li>
<a name="BASIC_USAGE" id="BASIC_USAGE"></a> <a name="BASIC_USAGE" id="BASIC_USAGE"></a>
<h2>Basic Usage</h2> <h2>Basic Usage</h2>
There are a few key classes to be aware of. The first is the There are a few key classes to be aware of. The first is the
<b>CmdLine</b> (command line) class. This is the class that parses <b>CmdLine</b> (command line) class. This class parses
the command line passed to it according to the arguments that it the command line passed to it according to the arguments that it
contains. Arguments are separate objects that are added to the contains. Arguments are separate objects that are added to the
<b>CmdLine</b> object one at a time. There are five types of <b>CmdLine</b> object one at a time. The five types of
arguments, <b>ValueArg</b>, <b>UnlabeledValueArg</b>, arguments are, <b>ValueArg</b>, <b>UnlabeledValueArg</b>,
<b>SwitchArg</b>, <b>MultiArg</b> and <b>UnlabeledMultiArg</b>. <b>SwitchArg</b>, <b>MultiArg</b> and <b>UnlabeledMultiArg</b>.
These are templatized classes meaning they can be defined to parse These classes are templatized, which means they can be defined to parse
a value of any <a href="manual.html#FOOTNOTES">type**</a>. Once the a value of any <a href="manual.html#FOOTNOTES">type**</a>. Once you add the
arguments are added to the command line object, the command line is arguments to the <b>CmdLine</b> object, it parses the command line
parsed which assigns the data on the command line to the specific and assigns the data it finds to the specific argument objects it
argument objects. The values are accessed by calls to the contains. Your program accesses the values parsed by
<i>getValue()</i> methods of the argument objects.<br /> calls to the <i>getValue()</i> methods of the argument objects.<br />
<br /> <br />
Here is a simple <a href="test1.cpp">example</a> ...<br /> Here is a simple <a href="test1.cpp">example</a> ...<br />
<pre> <pre>