Skip to content

Commit 8a581a6

Browse files
claudeswissspidy
andcommitted
Document dash-separated aliases of user application-password list filters
WP-CLI now warns when a parameter passed to a command with a `--<field>=<value>` catch-all looks like a typo of a documented one (wp-cli/wp-cli#6392). `wp user application-password list` accepts `--app-id`, `--last-used` and `--last-ip` as aliases of `--app_id`, `--last_used` and `--last_ip`, but only mentioned them in prose, so the framework reported them as typos and the Behat scenarios using them failed on unexpected STDERR output. Declare the aliases as parameters in the synopsis so they are recognized as documented and no warning is emitted. Co-authored-by: Pascal Birchler <pascal.birchler@gmail.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TAVTmW8kHx829E8486uMaF
1 parent fd471bb commit 8a581a6

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

‎src/User_Application_Password_Command.php‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ final class User_Application_Password_Command {
8585
* : Filter by the universally unique ID of the application password.
8686
*
8787
* [--app_id=<app_id>]
88-
* : Filter by the application ID. `--app-id` is also accepted.
88+
* : Filter by the application ID.
89+
*
90+
* [--app-id=<app_id>]
91+
* : Alias of `--app_id`.
8992
*
9093
* [--name=<name>]
9194
* : Filter by the name of the application password.
@@ -98,11 +101,15 @@ final class User_Application_Password_Command {
98101
*
99102
* [--last_used=<last_used>]
100103
* : Filter by the Unix timestamp the application password was last used at.
101-
* `--last-used` is also accepted.
104+
*
105+
* [--last-used=<last_used>]
106+
* : Alias of `--last_used`.
102107
*
103108
* [--last_ip=<last_ip>]
104109
* : Filter by the IP address the application password was last used from.
105-
* `--last-ip` is also accepted.
110+
*
111+
* [--last-ip=<last_ip>]
112+
* : Alias of `--last_ip`.
106113
*
107114
* [--field=<field>]
108115
* : Prints the value of a single field for each application password.

0 commit comments

Comments
 (0)