mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-08-03 17:56:17 -04:00
Fixed more typos
This commit is contained in:
parent
4c04f3e965
commit
5879dff268
@ -98,7 +98,7 @@ class Arg
|
|||||||
std::string _flag;
|
std::string _flag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A single work namd indentifying the argument.
|
* A single word namd identifying the argument.
|
||||||
* This value (preceded by two dashed {--}) can also be used
|
* This value (preceded by two dashed {--}) can also be used
|
||||||
* to identify an argument on the command line. Note that the
|
* to identify an argument on the command line. Note that the
|
||||||
* _name does NOT include the two dashes as part of the _name. The
|
* _name does NOT include the two dashes as part of the _name. The
|
||||||
@ -137,7 +137,7 @@ class Arg
|
|||||||
bool _alreadySet;
|
bool _alreadySet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A pointer to a vistitor object.
|
* A pointer to a visitor object.
|
||||||
* The visitor allows special handling to occur as soon as the
|
* The visitor allows special handling to occur as soon as the
|
||||||
* argument is matched. This defaults to NULL and should not
|
* argument is matched. This defaults to NULL and should not
|
||||||
* be used unless absolutely necessary.
|
* be used unless absolutely necessary.
|
||||||
@ -158,7 +158,7 @@ class Arg
|
|||||||
bool _acceptsMultipleValues;
|
bool _acceptsMultipleValues;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs the special handling described by the Vistitor.
|
* Performs the special handling described by the Visitor.
|
||||||
*/
|
*/
|
||||||
void _checkWithVisitor() const;
|
void _checkWithVisitor() const;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ struct ValueLike {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A string like argument value type is a value that can be set using
|
* A string like argument value type is a value that can be set using
|
||||||
* operator=(string). Usefull if the value type contains spaces which
|
* operator=(string). Useful if the value type contains spaces which
|
||||||
* will be broken up into individual tokens by operator>>.
|
* will be broken up into individual tokens by operator>>.
|
||||||
*/
|
*/
|
||||||
struct StringLike {
|
struct StringLike {
|
||||||
|
@ -119,7 +119,7 @@ class CmdLine : public CmdLineInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of Visitors to be explicitly deleted when the destructor
|
* A list of Visitors to be explicitly deleted when the destructor
|
||||||
* is called. At the moment, these are the Vistors created for the
|
* is called. At the moment, these are the Visitors created for the
|
||||||
* default Args.
|
* default Args.
|
||||||
*/
|
*/
|
||||||
std::list<Visitor*> _visitorDeleteOnExitList;
|
std::list<Visitor*> _visitorDeleteOnExitList;
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
namespace TCLAP {
|
namespace TCLAP {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Vistor that tells the CmdLine to begin ignoring arguments after
|
* A Visitor that tells the CmdLine to begin ignoring arguments after
|
||||||
* this one is parsed.
|
* this one is parsed.
|
||||||
*/
|
*/
|
||||||
class IgnoreRestVisitor: public Visitor
|
class IgnoreRestVisitor: public Visitor
|
||||||
|
@ -41,7 +41,7 @@ class UnlabeledMultiArg : public MultiArg<T>
|
|||||||
{
|
{
|
||||||
|
|
||||||
// If compiler has two stage name lookup (as gcc >= 3.4 does)
|
// If compiler has two stage name lookup (as gcc >= 3.4 does)
|
||||||
// this is requried to prevent undef. symbols
|
// this is required to prevent undef. symbols
|
||||||
using MultiArg<T>::_ignoreable;
|
using MultiArg<T>::_ignoreable;
|
||||||
using MultiArg<T>::_hasBlanks;
|
using MultiArg<T>::_hasBlanks;
|
||||||
using MultiArg<T>::_extractValue;
|
using MultiArg<T>::_extractValue;
|
||||||
@ -171,7 +171,7 @@ class UnlabeledMultiArg : public MultiArg<T>
|
|||||||
virtual std::string longID(const std::string& val="val") const;
|
virtual std::string longID(const std::string& val="val") const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opertor ==.
|
* Operator ==.
|
||||||
* \param a - The Arg to be compared to this.
|
* \param a - The Arg to be compared to this.
|
||||||
*/
|
*/
|
||||||
virtual bool operator==(const Arg& a) const;
|
virtual bool operator==(const Arg& a) const;
|
||||||
|
@ -44,7 +44,7 @@ class UnlabeledValueArg : public ValueArg<T>
|
|||||||
{
|
{
|
||||||
|
|
||||||
// If compiler has two stage name lookup (as gcc >= 3.4 does)
|
// If compiler has two stage name lookup (as gcc >= 3.4 does)
|
||||||
// this is requried to prevent undef. symbols
|
// this is required to prevent undef. symbols
|
||||||
using ValueArg<T>::_ignoreable;
|
using ValueArg<T>::_ignoreable;
|
||||||
using ValueArg<T>::_hasBlanks;
|
using ValueArg<T>::_hasBlanks;
|
||||||
using ValueArg<T>::_extractValue;
|
using ValueArg<T>::_extractValue;
|
||||||
@ -74,7 +74,7 @@ class UnlabeledValueArg : public ValueArg<T>
|
|||||||
* ignored if the '--' flag is set. This defaults to false (cannot
|
* ignored if the '--' flag is set. This defaults to false (cannot
|
||||||
* be ignored) and should generally stay that way unless you have
|
* be ignored) and should generally stay that way unless you have
|
||||||
* some special need for certain arguments to be ignored.
|
* some special need for certain arguments to be ignored.
|
||||||
* \param v - Optional Vistor. You should leave this blank unless
|
* \param v - Optional Visitor. You should leave this blank unless
|
||||||
* you have a very good reason.
|
* you have a very good reason.
|
||||||
*/
|
*/
|
||||||
UnlabeledValueArg( const std::string& name,
|
UnlabeledValueArg( const std::string& name,
|
||||||
@ -104,7 +104,7 @@ class UnlabeledValueArg : public ValueArg<T>
|
|||||||
* ignored if the '--' flag is set. This defaults to false (cannot
|
* ignored if the '--' flag is set. This defaults to false (cannot
|
||||||
* be ignored) and should generally stay that way unless you have
|
* be ignored) and should generally stay that way unless you have
|
||||||
* some special need for certain arguments to be ignored.
|
* some special need for certain arguments to be ignored.
|
||||||
* \param v - Optional Vistor. You should leave this blank unless
|
* \param v - Optional Visitor. You should leave this blank unless
|
||||||
* you have a very good reason.
|
* you have a very good reason.
|
||||||
*/
|
*/
|
||||||
UnlabeledValueArg( const std::string& name,
|
UnlabeledValueArg( const std::string& name,
|
||||||
@ -132,7 +132,7 @@ class UnlabeledValueArg : public ValueArg<T>
|
|||||||
* ignored if the '--' flag is set. This defaults to false (cannot
|
* ignored if the '--' flag is set. This defaults to false (cannot
|
||||||
* be ignored) and should generally stay that way unless you have
|
* be ignored) and should generally stay that way unless you have
|
||||||
* some special need for certain arguments to be ignored.
|
* some special need for certain arguments to be ignored.
|
||||||
* \param v - Optional Vistor. You should leave this blank unless
|
* \param v - Optional Visitor. You should leave this blank unless
|
||||||
* you have a very good reason.
|
* you have a very good reason.
|
||||||
*/
|
*/
|
||||||
UnlabeledValueArg( const std::string& name,
|
UnlabeledValueArg( const std::string& name,
|
||||||
@ -161,7 +161,7 @@ class UnlabeledValueArg : public ValueArg<T>
|
|||||||
* ignored if the '--' flag is set. This defaults to false (cannot
|
* ignored if the '--' flag is set. This defaults to false (cannot
|
||||||
* be ignored) and should generally stay that way unless you have
|
* be ignored) and should generally stay that way unless you have
|
||||||
* some special need for certain arguments to be ignored.
|
* some special need for certain arguments to be ignored.
|
||||||
* \param v - Optional Vistor. You should leave this blank unless
|
* \param v - Optional Visitor. You should leave this blank unless
|
||||||
* you have a very good reason.
|
* you have a very good reason.
|
||||||
*/
|
*/
|
||||||
UnlabeledValueArg( const std::string& name,
|
UnlabeledValueArg( const std::string& name,
|
||||||
@ -177,7 +177,7 @@ class UnlabeledValueArg : public ValueArg<T>
|
|||||||
* Handles the processing of the argument.
|
* Handles the processing of the argument.
|
||||||
* This re-implements the Arg version of this method to set the
|
* This re-implements the Arg version of this method to set the
|
||||||
* _value of the argument appropriately. Handling specific to
|
* _value of the argument appropriately. Handling specific to
|
||||||
* unlabled arguments.
|
* unlabeled arguments.
|
||||||
* \param i - Pointer the the current argument in the list.
|
* \param i - Pointer the the current argument in the list.
|
||||||
* \param args - Mutable list of strings.
|
* \param args - Mutable list of strings.
|
||||||
*/
|
*/
|
||||||
@ -207,7 +207,7 @@ class UnlabeledValueArg : public ValueArg<T>
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor implemenation.
|
* Constructor implementation.
|
||||||
*/
|
*/
|
||||||
template<class T>
|
template<class T>
|
||||||
UnlabeledValueArg<T>::UnlabeledValueArg(const std::string& name,
|
UnlabeledValueArg<T>::UnlabeledValueArg(const std::string& name,
|
||||||
@ -242,7 +242,7 @@ UnlabeledValueArg<T>::UnlabeledValueArg(const std::string& name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor implemenation.
|
* Constructor implementation.
|
||||||
*/
|
*/
|
||||||
template<class T>
|
template<class T>
|
||||||
UnlabeledValueArg<T>::UnlabeledValueArg(const std::string& name,
|
UnlabeledValueArg<T>::UnlabeledValueArg(const std::string& name,
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
namespace TCLAP {
|
namespace TCLAP {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A Vistor that will call the version method of the given CmdLineOutput
|
* A Visitor that will call the version method of the given CmdLineOutput
|
||||||
* for the specified CmdLine object and then exit.
|
* for the specified CmdLine object and then exit.
|
||||||
*/
|
*/
|
||||||
class VersionVisitor: public Visitor
|
class VersionVisitor: public Visitor
|
||||||
|
@ -52,7 +52,7 @@ class XorHandler
|
|||||||
XorHandler( ) : _orList(std::vector< std::vector<Arg*> >()) {}
|
XorHandler( ) : _orList(std::vector< std::vector<Arg*> >()) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a list of Arg*'s that will be orred together.
|
* Add a list of Arg*'s that will be xor'd together.
|
||||||
* \param ors - list of Arg* that will be xor'd.
|
* \param ors - list of Arg* that will be xor'd.
|
||||||
*/
|
*/
|
||||||
void add( std::vector<Arg*>& ors );
|
void add( std::vector<Arg*>& ors );
|
||||||
|
@ -193,7 +193,7 @@ inline void ZshCompletionOutput::printOption(Arg* a, std::string mutex)
|
|||||||
std::string name = a->nameStartString() + a->getName();
|
std::string name = a->nameStartString() + a->getName();
|
||||||
std::string desc = a->getDescription();
|
std::string desc = a->getDescription();
|
||||||
|
|
||||||
// remove full stop and capitalisation from description as
|
// remove full stop and capitalization from description as
|
||||||
// this is the convention for zsh function
|
// this is the convention for zsh function
|
||||||
if (!desc.compare(0, 12, "(required) "))
|
if (!desc.compare(0, 12, "(required) "))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user