|
|
发表于 2006-10-11 13:59:59
|
显示全部楼层
Traditionally, UNIX command-line options consist of a dash, followed by one or more lowercase letters. The GNU utilities added a double-dash, followed by a complete word or compound word.
It is a good idea to follow POSIX guidelines for the command-line options.
GNU version of getopt will normally permit options anywhere among the arguments unless the special argument `--' is used. This is not what POSIX specifies; it is a GNU extension. Please define long-named options that are equivalent to the single-letter Unix-style options. (from GNU Coding Standard 4.6) |
|