diff options
author | Philip Chimento <philip@endlessm.com> | 2013-10-18 14:15:38 -0700 |
---|---|---|
committer | Philip Chimento <philip@endlessm.com> | 2013-12-09 15:38:08 -0800 |
commit | bdaf5797440bd384477a125252c7b52c42afc044 (patch) | |
tree | 12b9d0601e3fa6ff28ca9e511e531ad5e9065061 | |
parent | 860bd26c78f33d70133ae50a136ab8af98b15cb8 (diff) |
eos-application-manifest: Fix bug in help formatting
[endlessm/eos-sdk#154]
-rw-r--r-- | tools/eos-application-manifest/commands/help.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eos-application-manifest/commands/help.js b/tools/eos-application-manifest/commands/help.js index d991b85..d26b95c 100644 --- a/tools/eos-application-manifest/commands/help.js +++ b/tools/eos-application-manifest/commands/help.js @@ -19,8 +19,8 @@ function execute(args) { return; print('Summaries of commands:'); let maxWidth = commandsList.reduce(function (prev, curr) { - return Math.max(curr.length, prev.length); - }); + return Math.max(curr.length, prev); + }, 0); commandsList.forEach(function (commandName) { let command = imports[commandName]; let summary; |