Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Fixin shorthand Value validation logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
henvic committed Mar 6, 2015
1 parent 8de1d92 commit 53cc0ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmds/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Help.prototype.groupOptions_ = function(details) {
shorthands.forEach(function(shorthand) {
var shorthandValue = details.shorthands[shorthand][0];

if (shorthandValue.lastIndexOf(option) === 2) {
if (shorthandValue === '--' + option) {
foundShorthand = shorthand;
}
});
Expand Down

0 comments on commit 53cc0ba

Please sign in to comment.