Richard Fish wrote:
On 1/18/06, Charles Marcus <[EMAIL PROTECTED]> wrote:
This may be the ultimate dumb question, but no amount of googling could
satisfy my ignorance...

Is there any difference? If not, why are the double hyphens almost
always specified?

-- is the GNU getopt syntax for long options.  For normal GNU programs:

--opt is processed as a single option ("opt")
-opt is processed as 6 options ('o', 'p', and 't').

--sync is correct.  -sync is wrong and generates an error.

Ahem... not for me it didn't... thats why I asked - wondered if I may have hosed anything (can't imagine that such a minor, easy-to-make typo would caus ebad things to happen, though).

Thanks for the detailed explanation, though... now I at least know the differences.

Now, why did it not generate an error for me, I wonder?

--
[email protected] mailing list

Reply via email to