diff --git a/src/Provider_Command.php b/src/Provider_Command.php index 2a56151..5ee1770 100644 --- a/src/Provider_Command.php +++ b/src/Provider_Command.php @@ -151,8 +151,8 @@ public function match_provider( $args, $assoc_args ) { $url = $args[0]; $discover = Utils\get_flag_value( $assoc_args, 'discover', true ); - $response_size_limit = Utils\get_flag_value( $assoc_args, 'limit-response-size' ); - $link_type = Utils\get_flag_value( $assoc_args, 'link-type' ); + $response_size_limit = $assoc_args['limit-response-size'] ?? null; + $link_type = $assoc_args['link-type'] ?? null; if ( ! $discover && ( null !== $response_size_limit || null !== $link_type ) ) { if ( null !== $response_size_limit && null !== $link_type ) {