Skip to content

Commit

Permalink
Update lib/commander.js
Browse files Browse the repository at this point in the history
Usage Information was displaying 'undefined' for command names, apparently because Command's name is store as _name rather than name
  • Loading branch information
kode4food committed Oct 10, 2012
1 parent 53d38cf commit 6394208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commander.js
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ Command.prototype.commandHelp = function(){
: '[' + arg.name + ']';
}).join(' ');

return cmd.name
return cmd._name
+ (cmd.options.length
? ' [options]'
: '') + ' ' + args
Expand Down

0 comments on commit 6394208

Please sign in to comment.