Skip to content

Commit

Permalink
fix(cli): verify-reader CLI command (#3660)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo authored Jan 9, 2025
1 parent 510a1a0 commit c639af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/cli/class-ras.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ public static function cli_setup_ras() {
*
* ## OPTIONS
*
* [--user=<user ID|email>]
* [--user-id=<id|email>]
* : 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;
Expand Down

0 comments on commit c639af7

Please sign in to comment.