mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-13 06:07:07 -04:00
Removed check on description in Arg::operator== since multiple args should be able to have the same description.
This commit is contained in:
parent
da59fe2b4a
commit
505936eb05
@ -439,9 +439,7 @@ inline std::string Arg::longID( const std::string& valueId ) const
|
|||||||
|
|
||||||
inline bool Arg::operator==(const Arg& a)
|
inline bool Arg::operator==(const Arg& a)
|
||||||
{
|
{
|
||||||
if ( ( _flag != "" && _flag == a._flag ) ||
|
if ( ( _flag != "" && _flag == a._flag ) || _name == a._name)
|
||||||
_name == a._name ||
|
|
||||||
_description == a._description )
|
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user