Processing passed arguments in script
<p>I'm trying to decide between short and long options, such as:</p>
<p>-h </p>
<p>vs.</p>
<p>--help</p>
<p>Obviously there are packages that deal with this, particularly in shell and perl programming.</p>
<p>Getopts, Getopts::Std, and Getopts::Long</p>
<p>I would prefer to use both, both -h and --help being a call for a help/usage function, but that requires quite a bit more effort.</p>
<p>So my question is, what are the pros and cons of both, while I like the readability of the long notation, it's also nice and cleaner to be able to use just the simple single character flags.</p>