diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-15 09:21:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-15 09:21:05 +0100 |
commit | 74220dba9db6a1dc5c0b504b0230de26ef9c9dd5 (patch) | |
tree | ca65c06f0c32d8a9afa6cc7249ff66ddadeca1b9 | |
parent | 57d6503286b114fee61b5e4725825e2490dcac29 (diff) | |
download | PeerTube-74220dba9db6a1dc5c0b504b0230de26ef9c9dd5.tar.gz PeerTube-74220dba9db6a1dc5c0b504b0230de26ef9c9dd5.tar.zst PeerTube-74220dba9db6a1dc5c0b504b0230de26ef9c9dd5.zip |
Fix username/password CLI options
-rw-r--r-- | server/tools/cli.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tools/cli.ts b/server/tools/cli.ts index 671b56ed0..a15d73fb4 100644 --- a/server/tools/cli.ts +++ b/server/tools/cli.ts | |||
@@ -73,10 +73,10 @@ function getRemoteObjectOrDie ( | |||
73 | ): { url: string, username: string, password: string } { | 73 | ): { url: string, username: string, password: string } { |
74 | const options = program.opts() | 74 | const options = program.opts() |
75 | 75 | ||
76 | function exitIfNoOptions (options: string[], errorPrefix: string = '') { | 76 | function exitIfNoOptions (optionNames: string[], errorPrefix: string = '') { |
77 | let exit = false | 77 | let exit = false |
78 | 78 | ||
79 | for (const key of options) { | 79 | for (const key of optionNames) { |
80 | if (!options[key]) { | 80 | if (!options[key]) { |
81 | if (exit === false && errorPrefix) console.error(errorPrefix) | 81 | if (exit === false && errorPrefix) console.error(errorPrefix) |
82 | 82 | ||