Add doc
This commit is contained in:
parent
e172f31c80
commit
2f8d3a0247
1 changed files with 39 additions and 0 deletions
39
docs/command-line-syntax.md
Normal file
39
docs/command-line-syntax.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# How we document our command line syntax
|
||||
|
||||
## Required arguments
|
||||
|
||||
Use plain text
|
||||
|
||||
_*example:*_
|
||||
`gh help`
|
||||
help is a required argument in this command
|
||||
|
||||
## Placeholder values
|
||||
|
||||
Use Angled brackets to represent text that you must supply
|
||||
|
||||
_*example:*_
|
||||
`gh pr view <issueNumber>`
|
||||
Replace `<issueNumber>` with an issue number
|
||||
|
||||
## Optional arguments
|
||||
|
||||
Place optional arguments in square brackets
|
||||
|
||||
_*example:*_
|
||||
`gh pr checkout [--web]`
|
||||
Replace `--web` is an optional argument
|
||||
|
||||
## Mutually exclusive arguments
|
||||
|
||||
Place mutually exclusive arguments inside braces separated by a vertical bar.
|
||||
|
||||
_*example:*_
|
||||
`gh pr {view | create}`
|
||||
|
||||
## Repeatable arguements
|
||||
|
||||
One or more arguments can replace arguments with ellipsis
|
||||
|
||||
_*example:*_
|
||||
`gh pr close <numbers … >`
|
||||
Loading…
Add table
Add a link
Reference in a new issue