Skip to content

Commit

Permalink
--url now supersedes --blog
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Creten committed Mar 1, 2012
1 parent 8924c97 commit 1f568eb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/php/wp-cli/wp-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,10 @@
exit;
}

// Handle --url and --blog parameters
if ( isset( $assoc_args['url'] ) ) {
WP_CLI::set_url( $assoc_args['url'] );
}

// Handle --blog parameter
if ( isset( $assoc_args['blog'] ) ) {
$blog = $assoc_args['url'];
} elseif ( isset( $assoc_args['blog'] ) ) {
$blog = $assoc_args['blog'];
unset( $assoc_args['blog'] );
if ( true === $blog ) {
Expand Down

0 comments on commit 1f568eb

Please sign in to comment.