Skip to content
Myr

when a command has a `--description` option, `cmd.description` is

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`undefined`. Prevent `TypeError` by using `_description`.

authored by Juan Ignacio Iglesias · committed by Juan Ignacio Iglesias · parent 66e487f · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:index.js+1 added-1 removed
941 unmodified lines
942 cmd._name943 + (cmd._alias ? '|' + cmd._alias : '')944 + (cmd.options.length ? ' [options]' : '')945 + ' ' + args946 , cmd.description()946 , cmd._description947 ];948 });949950 var width = commands.reduce(function(max, command) {
160 unmodified lines