Browse Source

only one defaultOption should be defined

master
Lloyd Brookes 11 years ago
parent
commit
3fe6bb1d8c
  1. 2
      ws.js

2
ws.js

@ -16,7 +16,7 @@ var options = new Thing()
.define({ name: "port", alias: "p", type: "number", defaultOption: true, value: 8000 })
.define({ name: "log-format", alias: "f", type: "string", value: "dev" })
.define({ name: "help", alias: "h", type: "boolean" })
.define({ name: "directory", alias: "d", type: "string", defaultOption: true, value: process.cwd()})
.define({ name: "directory", alias: "d", type: "string", value: process.cwd() })
.on("error", function(err){
halt(err.message);
})

Loading…
Cancel
Save