Skip to content

Commit a46e7ca

Browse files
committed
Update docs
1 parent 9267804 commit a46e7ca

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/command-line-syntax.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# How we document our command line syntax
22

3-
## Required text
3+
## Literal text
44

55
Use plain text for parts of the command that cannot be changed
66

@@ -10,23 +10,26 @@ The argument help is required in this command
1010

1111
## Placeholder values
1212

13-
Use angled brackets to represent a value the user must replace
13+
Use angled brackets to represent a value the user must replace. No other expressions can be contained within the angeled brackets.
1414

1515
_example:_
1616
`gh pr view <issue-number>`
1717
Replace `<issue-number>` with an issue number
1818

1919
## Optional arguments
2020

21-
Place optional arguments in square brackets
21+
Place optional arguments in square brackets. Mutually exclusive arguments can be included inside square brackets if they are separated with vertical bars.
2222

2323
_example:_
2424
`gh pr checkout [--web]`
2525
The argument `--web` is optional.
2626

27-
## Mutually exclusive arguments
27+
`gh pr view [<number> | <url>]`
28+
The `<number>` and `<url>` arguments are optional.
2829

29-
Place mutually exclusive arguments inside braces, separate arguments with vertical bars.
30+
## Required mutually exclusive arguments
31+
32+
Place required mutually exclusive arguments inside braces, separate arguments with vertical bars.
3033

3134
_example:_
3235
`gh pr {view | create}`

0 commit comments

Comments
 (0)