Skip to content

Commit

Permalink
add missing <
Browse files Browse the repository at this point in the history
  • Loading branch information
omonk committed May 17, 2019
1 parent c6d2663 commit 0fd4b18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var serve = require("../lib/serve");
program.version(pkg.version);

const stringBooleanToBoolean = val => {
console.log({val});
if (typeof val !== 'string' && (val !== 'true' || val !== 'false')) {
throw Error(`Incorrect string value: ${val}`);
}
Expand All @@ -26,7 +27,7 @@ const stringBooleanToBoolean = val => {
program
.option("-c --config <webpack-config>", "additional webpack configuration")
.option("-p --port <port>", "port to serve from (default: 9000)")
.option("-b --babelrc babelrc>", "use .babelrc in root (default: true)", stringBooleanToBoolean)
.option("-b --babelrc <babelrc>", "use .babelrc in root (default: true)", stringBooleanToBoolean)
.option(
"-t --timeout <timeout>",
"function invocation timeout in seconds (default: 10)"
Expand Down

0 comments on commit 0fd4b18

Please sign in to comment.