Skip to content

Commit

Permalink
fix(sirv-cli): ensure boolean args parsed as such;
Browse files Browse the repository at this point in the history
- Closes #97
  • Loading branch information
lukeed committed May 24, 2021
1 parent 7c5162a commit 8ebca7c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/sirv-cli/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,15 @@ sade('sirv [dir]')
.option('-H, --host', 'Hostname to bind', 'localhost')
.option('-p, --port', 'Port to bind', 5000)
.action(boot)
.parse(process.argv);
.parse(process.argv, {
default: {
dev: false,
etag: false,
quiet: false,
dotfiles: false,
immutable: false,
http2: false,
cors: false,
logs: true,
}
});

0 comments on commit 8ebca7c

Please sign in to comment.