Skip to content

Commit

Permalink
Treat --single flag as boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Mar 8, 2017
1 parent 66545f6 commit c982626
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ args
.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)
const flags = args.parse(process.argv, {
minimist: {
boolean: ['s', 'single']
}
})

const directory = args.sub[0]

// Don't log anything to the console if silent mode is enabled
Expand Down

0 comments on commit c982626

Please sign in to comment.