mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Minor arg handling tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15096 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d7f73b3949
commit
dc455cc852
2 changed files with 7 additions and 2 deletions
|
@ -1696,7 +1696,7 @@ static BOOL isPlistObject(id o)
|
|||
|
||||
while (!done)
|
||||
{
|
||||
if ([key hasPrefix: @"-"])
|
||||
if ([key hasPrefix: @"-"] == YES && [key isEqual: @"-"] == NO)
|
||||
{
|
||||
NSString *old = nil;
|
||||
|
||||
|
@ -1719,7 +1719,7 @@ static BOOL isPlistObject(id o)
|
|||
done = YES;
|
||||
continue;
|
||||
}
|
||||
else if ([val hasPrefix: @"-"] == YES)
|
||||
else if ([val hasPrefix: @"-"] == YES && [val isEqual: @"-"] == NO)
|
||||
{ // Yet another argument
|
||||
[argDict setObject: @"" forKey: key]; // arg is empty.
|
||||
if (old != nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue