Skip to content

Commit c982626

Browse files
committed
Treat --single flag as boolean
1 parent 66545f6 commit c982626

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/serve.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ args
4040
.option('cors', 'Setup * CORS headers to allow requests from any origin', false)
4141
.option('silent', `Don't log anything to the console`)
4242

43-
const flags = args.parse(process.argv)
43+
const flags = args.parse(process.argv, {
44+
minimist: {
45+
boolean: ['s', 'single']
46+
}
47+
})
48+
4449
const directory = args.sub[0]
4550

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

0 commit comments

Comments
 (0)