make it so -FOO, -Foo, and -foo all have the same effect.

r=mscott.  #25282
This commit is contained in:
sspitzer%netscape.com 2000-02-08 02:50:32 +00:00
parent 4eee3045eb
commit 286dfe38d2
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ nsCmdLineService::GetCmdLineValue(const char * aArg, char ** aResult)
for (int i = 0; i<mArgCount; i++)
{
if (!PL_strcmp(aArg, (char *) mArgList.ElementAt(i))) {
if (!PL_strcasecmp(aArg, (char *) mArgList.ElementAt(i))) {
*aResult = (char *)mArgValueList.ElementAt(i);
return NS_OK;
}

View File

@ -174,7 +174,7 @@ nsCmdLineService::GetCmdLineValue(const char * aArg, char ** aResult)
for (int i = 0; i<mArgCount; i++)
{
if (!PL_strcmp(aArg, (char *) mArgList.ElementAt(i))) {
if (!PL_strcasecmp(aArg, (char *) mArgList.ElementAt(i))) {
*aResult = (char *)mArgValueList.ElementAt(i);
return NS_OK;
}