Fix cli args

This commit is contained in:
Cooper Dalrymple
2026-06-09 17:34:31 -05:00
parent 37fb1e0cc1
commit 47ca0903b1
+2 -1
View File
@@ -110,7 +110,8 @@ final class CLI {
*/
public function form(array $args, array $assoc_args):void {
list($locations) = $args;
extract($assoc_args);
$all = $assoc_args['all'] ?? false;
$disable = $assoc_args['disable'] ?? false;
if (empty($locations) && !$all) {
WP_CLI::error('Please specify one or more form locations, or use --all.');