From 53cc0ba93daa76ab81e040390fcee3d6dd1b75ed Mon Sep 17 00:00:00 2001 From: Henrique Vicente Date: Fri, 6 Mar 2015 14:45:59 -0300 Subject: [PATCH] Fixin shorthand Value validation logic. --- lib/cmds/help.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmds/help.js b/lib/cmds/help.js index 0ed5cf16..f76bcbd2 100644 --- a/lib/cmds/help.js +++ b/lib/cmds/help.js @@ -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; } });