From 639420803f5291d9ead7c7003f2285e44c439a40 Mon Sep 17 00:00:00 2001 From: Thom Bradford Date: Wed, 10 Oct 2012 12:39:44 +0300 Subject: [PATCH] Update lib/commander.js Usage Information was displaying 'undefined' for command names, apparently because Command's name is store as _name rather than name --- lib/commander.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commander.js b/lib/commander.js index 2bc7aa945..7cfe02859 100644 --- a/lib/commander.js +++ b/lib/commander.js @@ -679,7 +679,7 @@ Command.prototype.commandHelp = function(){ : '[' + arg.name + ']'; }).join(' '); - return cmd.name + return cmd._name + (cmd.options.length ? ' [options]' : '') + ' ' + args