Skip to content

Commit

Permalink
Added version alias
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanth-hk committed Apr 4, 2020
1 parent 9567870 commit 3a82033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sx.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ if (passedArgs.length == 0) {
clone(passedArgs.slice(1))
} else if (passedArgs.length >= 1 && passedArgs[0].toLowerCase() == "sync") {
sync(passedArgs.slice(1));
} else if (passedArgs.length == 1 && passedArgs[0].toLowerCase() == "version") {
} else if (passedArgs.length == 1 && (passedArgs[0].toLowerCase() == "version" || passedArgs[0].toLowerCase() == "v")) {
version();
} else if (passedArgs.length == 1 && passedArgs[0].toLowerCase() == "help") {
help();
} else {
console.error(`Argument(s) ${passedArgs} cannot be parsed`);
}
}

0 comments on commit 3a82033

Please sign in to comment.