command line interface conventions and best practices

Patrick Williams patrick at stwcx.xyz
Thu Feb 27 04:20:06 AEDT 2020


On Wed, Feb 26, 2020 at 10:56:54AM -0500, Brad Bishop wrote:
> Does anyone have a favorite reference that outlines de-facto command line
> interface conventions and best practices?  Things like e.g. long options
> should have two dashes, options should not have capital letters, etc?
> 
> thanks!
> 
> -brad

https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
https://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
https://www.gnu.org/software/libc/manual/html_node/Getopt.html

I will say one pet peeve of mine is when a multi-word option is
--long_option but I don't see that discussed in any of these.

-- 
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200226/e982d5ec/attachment-0001.sig>


More information about the openbmc mailing list