Skip to content

Commit a441f7a

Browse files
committed
use WP_CLI\Utils\get_flag_value() to check the flag
1 parent c42d6ab commit a441f7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DB_Command.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ public function export( $args, $assoc_args ) {
335335
}
336336
}
337337

338-
if ( isset( $assoc_args['exclude_tables'] ) ) {
338+
$exclude_tables = WP_CLI\Utils\get_flag_value( $assoc_args, 'exclude_tables' );
339+
if ( isset( $exclude_tables ) ) {
339340
$tables = explode( ',', trim( $assoc_args['exclude_tables'], ',' ) );
340341
unset( $assoc_args['exclude_tables'] );
341342
foreach ( $tables as $table ) {

0 commit comments

Comments
 (0)