accept "--opt val" and "--opt:val" syntax in addition to "--opt=val" as

documented (patch 1786465)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-10-20 21:08:38 +00:00
parent ee17111a41
commit bdee3769af

View File

@@ -715,19 +715,6 @@ int wxCmdLineParser::Parse(bool showUsage)
}
}
else // it's an option. not a switch
{
// get the value
if ( isLong )
{
if ( *p++ != _T('=') )
{
errorMsg << wxString::Format(_("Option '%s' requires a value, '=' expected."), name.c_str())
<< _T('\n');
ok = false;
}
}
else // short option
{
switch ( (*p).GetValue() )
{
@@ -768,7 +755,6 @@ int wxCmdLineParser::Parse(bool showUsage)
ok = false;
}
}
}
if ( ok )
{