From 579f8f839c76d464b74281af74877d8de71e7e4f Mon Sep 17 00:00:00 2001 From: Stanislav Sysoev Date: Sun, 28 Feb 2016 11:32:57 +0300 Subject: [PATCH] fix(cli): Fix example in help --- cli.js | 2 +- src/cli.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.js b/cli.js index 3fced10..eefb7ae 100644 --- a/cli.js +++ b/cli.js @@ -20,7 +20,7 @@ var _isEmpty2 = _interopRequireDefault(_isEmpty); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var cli = (0, _meow2.default)({ - help: [_chalk2.default.green('Usage'), ' $ aik filename.js', '', _chalk2.default.green('Options'), ' ' + _chalk2.default.yellow('-p, --port') + ' Web server port. ' + _chalk2.default.dim('[Default: 8080]'), ' ' + _chalk2.default.yellow('-h, --host') + ' Web server host. ' + _chalk2.default.dim('[Default: localhost]'), ' ' + _chalk2.default.yellow('-n, --ngrok') + ' Exposes server to real world by ngrok.', ' ' + _chalk2.default.yellow('-c, --cssmodules') + ' Enables css modules.', ' ' + _chalk2.default.yellow('--help') + ' Shows help.', '', _chalk2.default.green('Examples'), ' $ aik filename.js --port 3000 -n -cm', _chalk2.default.dim(' Runs aik web server on 3000 port with ngrok and css modules support')] + help: [_chalk2.default.green('Usage'), ' $ aik filename.js', '', _chalk2.default.green('Options'), ' ' + _chalk2.default.yellow('-p, --port') + ' Web server port. ' + _chalk2.default.dim('[Default: 8080]'), ' ' + _chalk2.default.yellow('-h, --host') + ' Web server host. ' + _chalk2.default.dim('[Default: localhost]'), ' ' + _chalk2.default.yellow('-n, --ngrok') + ' Exposes server to real world by ngrok.', ' ' + _chalk2.default.yellow('-c, --cssmodules') + ' Enables css modules.', ' ' + _chalk2.default.yellow('--help') + ' Shows help.', '', _chalk2.default.green('Examples'), ' $ aik filename.js --port 3000 -n -c', _chalk2.default.dim(' Runs aik web server on 3000 port with ngrok and css modules support')] }, { alias: { p: 'port', diff --git a/src/cli.js b/src/cli.js index 333b5cd..165b058 100644 --- a/src/cli.js +++ b/src/cli.js @@ -17,7 +17,7 @@ const cli = meow({ ` ${chalk.yellow('--help')} Shows help.`, '', chalk.green('Examples'), - ' $ aik filename.js --port 3000 -n -cm', + ' $ aik filename.js --port 3000 -n -c', chalk.dim(' Runs aik web server on 3000 port with ngrok and css modules support') ] }, {