The following is a list of command-line options that I’ve noticed are in common usage. In bold are the uses that I believe must be the default.
-
-a- all
-
-f- force
- file (either input or output )
- “from” type (combined with
-tas “to type”, e.g.-f svg -t pngto convert form SVG to PNG)
-
-h- help
- hostname (perhaps prefer
-Hinstead)
-
-i- input file (combined with
-oas “output file”) - interactive
- ignore/exclude
- input file (combined with
-
-m- message
-
-n- number/amount
-
-o- output file (combined with
-ias “input file”)
- output file (combined with
-
-p- port
-
-q- quiet (which silences stdout, but not stderr, because stderr is for all diagnostic output)
-
-r- recursive
-
-t- “to” type (combined with
-fas “from type” e.g.-f svg -t pngto convert form SVG to PNG)
- “to” type (combined with
-
-v- version
- verbose
-
-V- version
See also
- esr has a list of command-line options.1
- Writing Consistent Tools
-
Eric Steven Raymond, “Command-Line Options,” The Art of Unix Programming, September 19, 2003, accessed December 11, 2023. ↩︎