Browse Source

Use EOLs in help message

pull/10/head
Muthu Kumar 7 years ago
parent
commit
9a825f8fc3
  1. 31
      index.js

31
index.js

@ -110,21 +110,22 @@ program
// Adds custom help text to the automatically generated help. // Adds custom help text to the automatically generated help.
program.on('--help', function () { program.on('--help', function () {
console.log(''); console.log(EOL
console.log(' Usage:'); + ' Usage:'
console.log(''); + EOL
console.log(' ', + EOL +
chalk.yellow('$ up'), + ' ' + chalk.yellow('$ up') + chalk.cyan('static')
chalk.cyan('static'), + chalk.blue('[domain-name]')
chalk.blue('domain-name')); + EOL
console.log(' Set up a static server at domain-name'); + ' Set up a static server at domain-name'
console.log(''); + EOL
console.log(' ', + EOL
chalk.yellow('$ up'), + ' ' + chalk.yellow('$ up')
chalk.cyan('proxy'), + chalk.cyan('proxy')
chalk.blue('domain-name port-number')); + chalk.blue('[domain-name] <port-number>')
console.log(' Set up a proxy server listening at port-number'); + EOL
console.log(''); + ' Set up a proxy server listening at port-number'
+ EOL);
}); });
// Parses commands passed to `up` and chooses one of the above commands. // Parses commands passed to `up` and chooses one of the above commands.

Loading…
Cancel
Save