Skip to content

Commit

Permalink
Fixes issue gsscoder#68
Browse files Browse the repository at this point in the history
  • Loading branch information
turch committed Mar 14, 2013
1 parent 205094c commit 616fbd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libcmdline/Parsing/LongOptionParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public override PresentParserState Parse(IArgumentEnumerator argumentEnumerator,
{
if (parts.Length == 1 && (argumentEnumerator.IsLast || !ArgumentParser.IsInputValue(argumentEnumerator.Next)))
{
DefineOptionThatViolatesFormat(option);
return PresentParserState.Failure;
}

Expand Down
1 change: 1 addition & 0 deletions src/libcmdline/Parsing/OptionGroupParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public override PresentParserState Parse(IArgumentEnumerator argumentEnumerator,
{
if (argumentEnumerator.IsLast && optionGroup.IsLast)
{
DefineOptionThatViolatesFormat(option);
return PresentParserState.Failure;
}

Expand Down

0 comments on commit 616fbd8

Please sign in to comment.