乐者为王

Do one thing, and do it well.

POSIX Conventions for Command Line Arguments

  1. An option is a hyphen followed by a single alphanumeric character, like this: -o.
  2. An option may require an argument (which must appear immediately after the option); for example, -oargument or -o argument.
  3. Options that do not require arguments can be grouped after a hyphen, so, for example, -lst is equivalent to -t -l -s.
  4. Options can appear in any order; thus -lst is equivalent to -tls.
  5. Options can appear multiple times.
  6. Options precede other nonoption arguments: -lst nonoption.
  7. The -- argument terminates options.
  8. The - option is typically used to represent one of the standard input streams.

Comments