Permalink
Browse files

Add --root and --usePagePort flags to require command

  • Loading branch information...
marcuswestin committed May 7, 2015
1 parent bce0128 commit c21cda961297b42858224c43b8bb8cb4c061ee4e
Showing with 10 additions and 0 deletions.
  1. +10 −0 bin/require-command.js
View
@@ -25,6 +25,16 @@ while (args.length) {
case '--host':
opts.host = args.shift()
break
case '--root':
opts.root = args.shift()
break
case '--usePagePort':
if (args[0] && args[0][0] != '-') {
console.log('Unexpected value for --usePagePort flag', args[0])
process.exit(1)
}
opts.usePagePort = true
break
default:
console.log('Unknown option', arg)
process.exit(1)

0 comments on commit c21cda9

Please sign in to comment.