From 31aacd78e8e3604ccde6326ff43a36132319c52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Bigio?= Date: Mon, 12 Oct 2015 12:57:46 -0700 Subject: [PATCH] Fix error message when invoking wrong command. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: @​public The message we were showing before didn't include correctly the commands the private cli had. Reviewed By: @vjeux Differential Revision: D2530164 fb-gh-sync-id: 2b00c74cb41441686587588632815c5948f3a864 --- private-cli/src/cli.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/private-cli/src/cli.js b/private-cli/src/cli.js index 563ddde73..0f1212d74 100644 --- a/private-cli/src/cli.js +++ b/private-cli/src/cli.js @@ -61,4 +61,7 @@ function help() { return Promise.resolve(); } -module.exports.run = run; +module.exports = { + commands: documentedCommands, + run: run, +};