Skip to content

Warning when using args in CLI commands #7452

@KhaledSakr

Description

@KhaledSakr

Description

When using the --args argument with a cli command (for example: wp pods field add), a warning is printed:

Warning: Undefined array key "type" in /var/www/html/web/app/plugins/pods/src/Pods/CLI/Commands/Base.php on line 441

Version

3.3

Testing Instructions

Run a command like:

wp pods field add --pod=post --name=classification --label="Classification" --type=pick --args='{"pick_object": "custom-simple","pick_custom": "old\nnew"}'

Screenshots / Screencast

No response

Possible Workaround

No need for a workaround. The command works, it just prints a warning.

Site Health Information


Pods Package

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions