Skip to content

Commit

Permalink
fix(cli): allow unknown options (#151)
Browse files Browse the repository at this point in the history
Fixes: #150
  • Loading branch information
ayushmanchhabra authored Apr 21, 2024
1 parent ad41b3f commit 466494a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Changed

- Allow passing unknown options to `nw` via `commander` acting as parser.

## [0.86.0-3]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"postinstall": "node src/postinstall.js",
"test": "vitest run",
"demo": "nw ./test/app"
"demo": "nw ./test/app --log-level=verbose"
},
"files": [
"bin",
Expand Down
1 change: 1 addition & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ async function cli() {
.option('--arch <arch>')
.option('--cacheDir <cacheDir>')
.argument('[app]')
.allowUnknownOption()
.parse(process.argv);

let options = program.opts();
Expand Down

0 comments on commit 466494a

Please sign in to comment.