From 64bbb42553c925ebf7177945d048c18675188584 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 22 Mar 2025 23:17:52 +0100 Subject: Fix CLI flag parsing (#7430) * Fix CLI flag parsing fix https://github.com/FreshRSS/FreshRSS/issues/7428 * Fix other places * Forgotten debugging --- cli/db-backup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/db-backup.php') diff --git a/cli/db-backup.php b/cli/db-backup.php index 8f8fda2b1..09604a2df 100755 --- a/cli/db-backup.php +++ b/cli/db-backup.php @@ -7,7 +7,7 @@ performRequirementCheck(FreshRSS_Context::systemConf()->db['type'] ?? ''); $ok = true; $cliOptions = new class extends CliOptionsParser { - public string $quiet; + public bool $quiet; public function __construct() { $this->addOption('quiet', (new CliOption('quiet', 'q'))->withValueNone()); @@ -23,7 +23,7 @@ foreach (listUsers() as $username) { $username = cliInitUser($username); $filename = DATA_PATH . '/users/' . $username . '/backup.sqlite'; @unlink($filename); - $verbose = !isset($cliOptions->quiet); + $verbose = !$cliOptions->quiet; if ($verbose) { echo 'FreshRSS backup database to SQLite for user “', $username, "”…\n"; -- cgit v1.2.3