]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix username/password CLI options
authorChocobozzz <me@florianbigard.com>
Tue, 15 Mar 2022 08:21:05 +0000 (09:21 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 15 Mar 2022 08:21:05 +0000 (09:21 +0100)
server/tools/cli.ts

index 671b56ed0819650b9128cad9f874fafb943e1972..a15d73fb404d633c1af5a44bf9ece504847f75df 100644 (file)
@@ -73,10 +73,10 @@ function getRemoteObjectOrDie (
 ): { url: string, username: string, password: string } {
   const options = program.opts()
 
-  function exitIfNoOptions (options: string[], errorPrefix: string = '') {
+  function exitIfNoOptions (optionNames: string[], errorPrefix: string = '') {
     let exit = false
 
-    for (const key of options) {
+    for (const key of optionNames) {
       if (!options[key]) {
         if (exit === false && errorPrefix) console.error(errorPrefix)