Skip to content

Instantly share code, notes, and snippets.

@iguoli
Last active September 13, 2017 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iguoli/6e5b3ece75f07fabe9ebf8971d767580 to your computer and use it in GitHub Desktop.
Save iguoli/6e5b3ece75f07fabe9ebf8971d767580 to your computer and use it in GitHub Desktop.
命令行语法

命令行语法

具体内容可以参考
Chapter 12. Utility conventions of the IEEE Std 1003.1, 2004 Edition.
man手册页中关于SYNOPSIS小节的约定

加粗文本          按原样显示。

倾斜文本          用相应的参数进行替换。

[-abc]            “[ ]” 内的任意/全部参数都是可选的。  

-a|-b             以“|”分隔的选项不可以一起使用。  

参数 ...           参数可以重复。  

[表达式] ...       “[ ]”内的整个表达式可以重复。  

有时候经常用带下划线的参数名 parameters 或尖括号包围的参数名 <parameters> 来表示需要对此参数进行替换。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment