Skip to content

Commit 8ebca7c

Browse files
committed
fix(sirv-cli): ensure boolean args parsed as such;
- Closes #97
1 parent 7c5162a commit 8ebca7c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/sirv-cli/bin.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,15 @@ sade('sirv [dir]')
3030
.option('-H, --host', 'Hostname to bind', 'localhost')
3131
.option('-p, --port', 'Port to bind', 5000)
3232
.action(boot)
33-
.parse(process.argv);
33+
.parse(process.argv, {
34+
default: {
35+
dev: false,
36+
etag: false,
37+
quiet: false,
38+
dotfiles: false,
39+
immutable: false,
40+
http2: false,
41+
cors: false,
42+
logs: true,
43+
}
44+
});

0 commit comments

Comments
 (0)