mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-09 04:09:31 -04:00
fixed a bug involving blank _flags and - as an UnlabeledValueArg
This commit is contained in:
parent
6c73bf5452
commit
c35e842ddc
@ -485,7 +485,7 @@ inline void Arg::setRequireLabel( const std::string& s)
|
||||
|
||||
inline bool Arg::argMatches( const std::string& argFlag ) const
|
||||
{
|
||||
if ( argFlag == Arg::flagStartString() + _flag ||
|
||||
if ( ( argFlag == Arg::flagStartString() + _flag && _flag != "" ) ||
|
||||
argFlag == Arg::nameStartString() + _name )
|
||||
return true;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user