Skip to content

Commit 2f8d3a0

Browse files
committed
Add doc
1 parent e172f31 commit 2f8d3a0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

docs/command-line-syntax.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# How we document our command line syntax
2+
3+
## Required arguments
4+
5+
Use plain text
6+
7+
_*example:*_
8+
`gh help`
9+
help is a required argument in this command
10+
11+
## Placeholder values
12+
13+
Use Angled brackets to represent text that you must supply
14+
15+
_*example:*_
16+
`gh pr view <issueNumber>`
17+
Replace `<issueNumber>` with an issue number
18+
19+
## Optional arguments
20+
21+
Place optional arguments in square brackets
22+
23+
_*example:*_
24+
`gh pr checkout [--web]`
25+
Replace `--web` is an optional argument
26+
27+
## Mutually exclusive arguments
28+
29+
Place mutually exclusive arguments inside braces separated by a vertical bar.
30+
31+
_*example:*_
32+
`gh pr {view | create}`
33+
34+
## Repeatable arguements
35+
36+
One or more arguments can replace arguments with ellipsis
37+
38+
_*example:*_
39+
`gh pr close <numbers … >`

0 commit comments

Comments
 (0)