From 96f1e4abcefe0c5bc127d15a2d8041972f679568 Mon Sep 17 00:00:00 2001 From: Kaspar Emanuel Date: Sat, 24 Mar 2018 04:07:28 +0000 Subject: [PATCH] Fully fixes #989 - make -h same as help command (#1057) --- src/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.js b/src/cli.js index b8ebb7c5a05..eed89dc3a32 100755 --- a/src/cli.js +++ b/src/cli.js @@ -137,7 +137,7 @@ program.on('--help', function() { // Make serve the default command except for --help var args = process.argv; -if (args[2] === '--help') args[2] = 'help'; +if (args[2] === '--help' || args[2] === '-h') args[2] = 'help'; if (!args[2] || !program.commands.some(c => c.name() === args[2])) { args.splice(2, 0, 'serve'); }