We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59c8d8d commit 96f1e4aCopy full SHA for 96f1e4a
1 file changed
src/cli.js
@@ -137,7 +137,7 @@ program.on('--help', function() {
137
138
// Make serve the default command except for --help
139
var args = process.argv;
140
-if (args[2] === '--help') args[2] = 'help';
+if (args[2] === '--help' || args[2] === '-h') args[2] = 'help';
141
if (!args[2] || !program.commands.some(c => c.name() === args[2])) {
142
args.splice(2, 0, 'serve');
143
}
0 commit comments