Skip to content

Commit

Permalink
Fully fixes #989 - make -h same as help command (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasbah authored and devongovett committed Mar 24, 2018
1 parent 99c3512 commit d37d890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/parcel/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit d37d890

Please sign in to comment.