From af823f98b639fa0614e39027b9b5d3f809b5f7b6 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 21 Sep 2018 17:51:33 -0400 Subject: [PATCH] clarify template option; hide ens option; update typo suggestion list --- cmd/cmd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/cmd.js b/cmd/cmd.js index aaea0c11..e0fe06ac 100644 --- a/cmd/cmd.js +++ b/cmd/cmd.js @@ -94,7 +94,7 @@ class Cmd { .description(__('New Application')) .option('--simple', __('create a barebones project meant only for contract development')) .option('--locale [locale]', __('language to use (default: en)')) - .option('--template [url]', __('download template from a GitHub repository')) + .option('--template [name/url]', __('download a known template given its name or from a GitHub repository')) .action(function(name, options) { i18n.setOrDetectLocale(options.locale); if (name === undefined) { @@ -300,7 +300,7 @@ class Cmd { upload() { program .command('upload [environment]') - .option('--ens [ensDomain]', __('ENS domain to associate to')) + //.option('--ens [ensDomain]', __('ENS domain to associate to')) .option('--logfile [logfile]', __('filename to output logs (default: %s)', 'none')) .option('--loglevel [loglevel]', __('level of logging to display') + ' ["error", "warn", "info", "debug", "trace"]', /^(error|warn|info|debug|trace)$/i, 'debug') .option('--locale [locale]', __('language to use (default: en)')) @@ -401,7 +401,7 @@ class Cmd { .action(function(cmd) { console.log((__('unknown command') + ' "%s"').red, cmd); let utils = require('../lib/utils/utils.js'); - let dictionary = ['new', 'demo', 'build', 'run', 'blockchain', 'simulator', 'test', 'upload', 'version']; + let dictionary = ['new', 'demo', 'build', 'run', 'blockchain', 'simulator', 'test', 'upload', 'version', 'console', 'eject-webpack', 'graph', 'help', 'reset']; let suggestion = utils.proposeAlternative(cmd, dictionary); if (suggestion) { console.log((__('did you mean') + ' "%s"?').green, suggestion);