Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
💢 Fix messed up boolean value inversion logic
Browse files Browse the repository at this point in the history
  • Loading branch information
louistakepillz committed Apr 9, 2015
1 parent 88bf526 commit 1999418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArgumentParser/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ private static FlagPair GetFlagPair(ParserOptions options, IFlag flag, RawParame
var flagPair = new FlagPair(
argument: flag,
values: values.Select(x => (Object) x.Value),
count: values.Last().Value == 0 ^ invertDefault ? 1 : 0);
count: values.Last().Value == 1 ^ invertDefault ? 1 : 0);

trailingValues = flag.AllowCompositeValues ? new String[0][] : GetCompositeValueParts(parameters);

Expand Down

0 comments on commit 1999418

Please sign in to comment.