1111 * <slug>
1212 * : Slug of the plugin to download.
1313 *
14- * [--path=<path>]
14+ * [--target- path=<path>]
1515 * : Directory to store the downloaded zip file. Defaults to the current directory.
1616 *
1717 * [--version=<version>]
@@ -38,7 +38,7 @@ class Plugin_Download_Command {
3838 * Downloads a plugin zip package without loading WordPress.
3939 *
4040 * @param array{0: string} $args Positional arguments.
41- * @param array{path?: string, version?: string, force?: bool, insecure?: bool} $assoc_args Associative arguments.
41+ * @param array{target- path?: string, version?: string, force?: bool, insecure?: bool} $assoc_args Associative arguments.
4242 */
4343 public function __invoke ( $ args , $ assoc_args ) {
4444 $ slug = (string ) $ args [0 ];
@@ -49,7 +49,7 @@ public function __invoke( $args, $assoc_args ) {
4949 $ insecure = Utils \get_flag_value ( $ assoc_args , 'insecure ' , false );
5050 $ force = Utils \get_flag_value ( $ assoc_args , 'force ' , false );
5151 $ requested = Utils \get_flag_value ( $ assoc_args , 'version ' , null );
52- $ download_dir = Utils \get_flag_value ( $ assoc_args , 'path ' , getcwd () );
52+ $ download_dir = Utils \get_flag_value ( $ assoc_args , 'target- path ' , getcwd () );
5353
5454 if ( ! is_dir ( $ download_dir ) ) {
5555 if ( ! @mkdir ( $ download_dir , 0755 , true ) ) {
0 commit comments