File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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 … > `
You can’t perform that action at this time.
0 commit comments