From 9a825f8fc3c43cda53a22be8252997e0fe0d4d2b Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Tue, 28 Nov 2017 14:17:12 +0530 Subject: [PATCH] Use EOLs in help message --- index.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/index.js b/index.js index bc388d4..80efce0 100755 --- a/index.js +++ b/index.js @@ -110,21 +110,22 @@ program // Adds custom help text to the automatically generated help. program.on('--help', function () { - console.log(''); - console.log(' Usage:'); - console.log(''); - console.log(' ', - chalk.yellow('$ up'), - chalk.cyan('static'), - chalk.blue('domain-name')); - console.log(' Set up a static server at domain-name'); - console.log(''); - console.log(' ', - chalk.yellow('$ up'), - chalk.cyan('proxy'), - chalk.blue('domain-name port-number')); - console.log(' Set up a proxy server listening at port-number'); - console.log(''); + console.log(EOL + + ' Usage:' + + EOL + + EOL + + + ' ' + chalk.yellow('$ up') + chalk.cyan('static') + + chalk.blue('[domain-name]') + + EOL + + ' Set up a static server at domain-name' + + EOL + + EOL + + ' ' + chalk.yellow('$ up') + + chalk.cyan('proxy') + + chalk.blue('[domain-name] ') + + EOL + + ' Set up a proxy server listening at port-number' + + EOL); }); // Parses commands passed to `up` and chooses one of the above commands.