From bdaf5797440bd384477a125252c7b52c42afc044 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Fri, 18 Oct 2013 14:15:38 -0700 Subject: eos-application-manifest: Fix bug in help formatting [endlessm/eos-sdk#154] --- tools/eos-application-manifest/commands/help.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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; -- cgit v1.2.3