cli parameters
Kurt Wall
kwall
Mon May 17 11:57:37 PDT 2004
In a 0.5K blaze of typing glory, Ian Stephen wrote:
> Question for the programmers out there.
>
> Is there a standard for command-line parameters passed to Linux
> programs?
>
> Some things seem common like "-o <filename>" specifying an output
> filename or "-f" meaning force, but are these just common practise or is
> there an actual standard available somewhere?
I'm not aware of a formal standard, but the idioms are pretty well
established for common options ("-" to write to stdout or read from
stdin, for example). The GNU coding standards at
http://www.gnu.org/prep/standards_toc.html#SEC_Contents might
provide some hints, but I think they mostly address those delightful
GNU long options.
Kurt
--
Office Automation, n.:
The use of computers to improve efficiency by removing anyone
you would want to talk with over coffee.
More information about the Linux-users
mailing list