-   Programming (
-   -   Standard for commandline options (

brianmcgee 02-22-2011 02:35 AM

Standard for commandline options
Is there any document or specification like the Linux Standard Base for the naming convention of commandline options?

Snark1994 02-22-2011 04:00 AM

Are you talking about this? There's a link in that to a table of all the long options and how they're abbreviated in various programs :)

paulsm4 02-23-2011 02:59 PM

Additionally, if you're programming in C or C++, it's generally considered good form to use "getopt()" instead of rolling your own, ad hoc command line parser.

Although I confess - I routinely violate this guideline ;)

dugan 02-23-2011 04:04 PM

And if you're programming in Python, then you should use argparse instead of rolling your own.

All times are GMT -5. The time now is 01:52 PM.