Skip to content

Commit 8a488df

Browse files
committed
Store commander options safely to avoid name collisions homebridge#2670
1 parent 085f50c commit 8a488df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export = function cli(): void {
2727

2828
commander
2929
.version(getVersion())
30+
.storeOptionsAsProperties(false) // https://github.com/tj/commander.js/pull/1275
3031
.option("-C, --color", "force color in logging", () => Logger.forceColor())
3132
.option("-D, --debug", "turn on debug level logging", () => Logger.setDebugEnabled(true))
3233
.option("-I, --insecure", "allow unauthenticated requests (for easier hacking)", () => insecureAccess = true)

0 commit comments

Comments
 (0)