From c639af78b9ba7cf73ef01e7f499a2389e0626343 Mon Sep 17 00:00:00 2001 From: Derrick Koo Date: Thu, 9 Jan 2025 09:19:50 -0700 Subject: [PATCH] fix(cli): verify-reader CLI command (#3660) --- includes/cli/class-ras.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/cli/class-ras.php b/includes/cli/class-ras.php index 1964f70506..e3ebc61902 100644 --- a/includes/cli/class-ras.php +++ b/includes/cli/class-ras.php @@ -55,14 +55,14 @@ public static function cli_setup_ras() { * * ## OPTIONS * - * [--user=] + * [--user-id=] * : The user ID or email address associated with the reader account to verify. * * @param array $args Positional args. * @param array $assoc_args Associative args. */ public static function cli_verify_reader( $args, $assoc_args ) { - $user_id_or_email = ! empty( $args ) ? reset( $args ) : false; + $user_id_or_email = ! empty( $assoc_args ) ? reset( $assoc_args ) : false; if ( ! $user_id_or_email ) { WP_CLI::error( __( 'Please provide a user ID or email address.', 'newspack-plugin' ) ); exit;