From 1c305b1a59ba921a1da222ab419772ef4da73f1e Mon Sep 17 00:00:00 2001 From: pattonwebz Date: Fri, 12 Jul 2024 17:15:51 +0100 Subject: [PATCH] Flags need to be set as `'optional' => true` in CLI synopsys blocks --- includes/classes/WPCLI/Command/GetSiteStats.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/classes/WPCLI/Command/GetSiteStats.php b/includes/classes/WPCLI/Command/GetSiteStats.php index 758eba0d..6a0314b8 100644 --- a/includes/classes/WPCLI/Command/GetSiteStats.php +++ b/includes/classes/WPCLI/Command/GetSiteStats.php @@ -74,6 +74,7 @@ public static function get_args(): array { 'name' => 'clear-cache', 'description' => esc_html__( 'Clear the cache before retrieving the stats (can be intensive).', 'accessibility-checker' ), 'repeating' => false, + 'optional' => true, ], ], ];