Skip to content

Commit 4b330bf

Browse files
nylenschlessera
andauthored
Use list to fetch positional arguments
Co-Authored-By: Alain Schlesser <alain.schlesser@gmail.com>
1 parent d137e2d commit 4b330bf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Core_Command.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ public function download( $args, $assoc_args ) {
155155

156156
$locale = Utils\get_flag_value( $assoc_args, 'locale', 'en_US' );
157157
$skip_content = Utils\get_flag_value( $assoc_args, 'skip-content' );
158-
$from_url = false;
158+
159+
list( $download_url ) = $args;
160+
$from_url = ! empty( $download_url );
159161

160162
if ( ! empty( $args[0] ) ) {
161163
// URL is given

0 commit comments

Comments
 (0)