Repository navigation
Commit 1d2d903
Declare dash-separated aliases of
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 and
normalized them by hand, so the framework reported them as typos and the
Behat scenarios using them failed on unexpected STDERR output.
Declare the aliases with the framework's `--param=<value>|alias` synopsis
syntax instead. The dispatcher resolves them to the canonical names before
validation, so no warning is emitted and the manual dash-to-underscore
normalization in the command becomes unnecessary.
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_01TAVTmW8kHx829E8486uMaFuser application-password list filters1 parent fd471bb commit 1d2d903
1 file changed
Lines changed: 6 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | 196 | | |
206 | 197 | | |
207 | 198 | | |
| |||
0 commit comments