allowing blank flags

This commit is contained in:
mes5k 2004-02-10 05:03:24 +00:00
parent de74a34e32
commit 939452566b

View File

@ -31,10 +31,7 @@ SwitchArg::SwitchArg(const string& flag,
Visitor* v )
: Arg(flag, name, desc, false, false, v),
_value( _default )
{
if ( _flag == "" )
throw(ArgException("Cannot have an unlabeled SwitchArg!",toString()));
};
{ };
SwitchArg::~SwitchArg() { };