Skip to content

Commit

Permalink
Fix :++ :-- for flag actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Mar 18, 2013
1 parent bdfce5a commit 905132c
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -46,10 +46,12 @@ else if (arg.split(":", 3).length > 1) {
name = flagArgs[0].toUpperCase();

if (flagArgs.length == 2) {
if (flagArgs[1].equals("+")) {
if (flagArgs[1].equals("+")
|| flagArgs[1].equals("++")) {
action = Action.INCREASE;
value = "1";
} else if (flagArgs[1].equals("-")) {
} else if (flagArgs[1].equals("-")
|| flagArgs[1].equals("--")) {
// Using equals instead of startsWith because
// people need to be able to set values like "-2"
action = Action.DECREASE;
Expand Down

0 comments on commit 905132c

Please sign in to comment.