Skip to content

Commit

Permalink
Let args decide the short flag for --cors (=> -C)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Feb 28, 2017
1 parent 90b89f4 commit bc94699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ args
.option('unzipped', 'Disable GZIP compression')
.option('ignore', 'Files and directories to ignore', '')
.option('auth', 'Serve behind basic auth')
.option(['o', 'cors'], 'Setup * CORS headers to allow requests from any origin', false)
.option('cors', 'Setup * CORS headers to allow requests from any origin', false)
.option('silent', `Don't log anything to the console`)

const flags = args.parse(process.argv)
Expand Down

0 comments on commit bc94699

Please sign in to comment.