Skip to content

Commit c6071d0

Browse files
authored
Merge pull request #34 from wp-cli/update-readme-220
Update README.md file
2 parents 35688c5 + 78fcbc4 commit c6071d0

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,17 @@ Exits with return code 0 if the role exists, 1 if it does not.
134134
Lists all roles.
135135

136136
~~~
137-
wp role list [--fields=<fields>] [--format=<format>]
137+
wp role list [--fields=<fields>] [--field=<field>] [--format=<format>]
138138
~~~
139139

140140
**OPTIONS**
141141

142142
[--fields=<fields>]
143143
Limit the output to specific object fields.
144144

145+
[--field=<field>]
146+
Prints the value of a single field.
147+
145148
[--format=<format>]
146149
Render output in a particular format.
147150
---
@@ -235,7 +238,7 @@ See references for [Roles and Capabilities](https://codex.wordpress.org/Roles_an
235238
Adds capabilities to a given role.
236239

237240
~~~
238-
wp cap add <role> <cap>...
241+
wp cap add <role> <cap>... [--grant]
239242
~~~
240243

241244
**OPTIONS**
@@ -246,6 +249,15 @@ wp cap add <role> <cap>...
246249
<cap>...
247250
One or more capabilities to add.
248251

252+
[--grant]
253+
Adds the capability as an explicit boolean value, instead of implicitly defaulting to `true`.
254+
---
255+
default: true
256+
options:
257+
- true
258+
- false
259+
---
260+
249261
**EXAMPLES**
250262

251263
# Add 'spectate' capability to 'author' role.
@@ -259,7 +271,7 @@ wp cap add <role> <cap>...
259271
Lists capabilities for a given role.
260272

261273
~~~
262-
wp cap list <role> [--format=<format>]
274+
wp cap list <role> [--format=<format>] [--show-grant]
263275
~~~
264276

265277
**OPTIONS**
@@ -280,6 +292,12 @@ wp cap list <role> [--format=<format>]
280292
- yaml
281293
---
282294

295+
[--show-grant]
296+
Display all capabilities defined for a role including grant.
297+
---
298+
default: false
299+
---
300+
283301
**EXAMPLES**
284302

285303
# Display alphabetical list of Contributor capabilities.

0 commit comments

Comments
 (0)