Monthly Archives: April 2018

命令行语法说明怎么读

在阅读Git帮助文档时,经常会看到长长的语法说明,看起来有点晕,于是查询了这类怎么读。

$ man man

有一部分内容可以参考:
The following conventions apply to the SYNOPSIS section and can be used as a guide in other sections.

bold text type exactly as shown.
italic text replace with appropriate argument.
[-abc] any or all arguments within [ ] are optional.
-a|-b options delimited by | cannot be used together.
argument … argument is repeatable.
[expression] … entire expression within [ ] is repeatable.

另外Git book里面的参数是<>扩起来的。