Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix username/password CLI options

Chocobozzz74220dba9db6
diff --git a/server/tools/cli.ts b/server/tools/cli.ts
index 671b56ed08..a15d73fb40 100644
--- a/server/tools/cli.ts
+++ b/server/tools/cli.ts
@@ -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)