Common command-line options
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
-t
as “to type”, e.g.-f svg -t png
to convert form SVG to PNG)
-
-h
- help
- hostname (perhaps prefer
-H
instead)
-
-i
- input file (combined with
-o
as “output file”) - interactive
- ignore/exclude
- input file (combined with
-
-m
- message
-
-n
- number/amount
-
-o
- output file (combined with
-i
as “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
-f
as “from type” e.g.-f svg -t png
to 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
-
Eric Steven Raymond, “Command-Line Options,” The Art of Unix Programming, September 19, 2003, accessed December 11, 2023. ↩︎