From 8076a56baf3456e42a2f4ce5f9341fdf4574e447 Mon Sep 17 00:00:00 2001 From: pattonwebz Date: Fri, 12 Jul 2024 15:51:58 +0100 Subject: [PATCH] Make --clear-cache a true flag and not an associative param --- includes/classes/WPCLI/Command/GetSiteStats.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/classes/WPCLI/Command/GetSiteStats.php b/includes/classes/WPCLI/Command/GetSiteStats.php index fd1ff8c6..758eba0d 100644 --- a/includes/classes/WPCLI/Command/GetSiteStats.php +++ b/includes/classes/WPCLI/Command/GetSiteStats.php @@ -70,11 +70,9 @@ public static function get_args(): array { 'repeating' => true, ], [ - 'type' => 'assoc', + 'type' => 'flag', 'name' => 'clear-cache', 'description' => esc_html__( 'Clear the cache before retrieving the stats (can be intensive).', 'accessibility-checker' ), - 'optional' => true, - 'default' => true, 'repeating' => false, ], ],