mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Fix username/password CLI options
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user