Skip to content

Commit

Permalink
Show command line help on argument error (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
alallier authored Aug 14, 2024
1 parent c1e3b24 commit d4bf31b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/reload
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const clc = require('cli-color')

program
.version(require('../package.json').version)
.showHelpAfterError()
.option('-b, --browser', 'Open in the browser automatically.')
.option('-n, --hostname [hostname]', 'If -b flag is being used, this allows for custom hostnames. Defaults to localhost.', 'localhost')
.option('-d, --dir [dir]', 'The directory to serve up. Defaults to current dir.', process.cwd())
Expand Down

0 comments on commit d4bf31b

Please sign in to comment.