What's the difference between one-dash and two-dashes for command prompt parameters?
- by Pacerier
I was wondering why is it that some programs requires their command prompt parameters to have two dashes in front whereas some (most) only require one dash in front?
For example most programs look like this: relaxer -dtd toc.xml toc_gr.xml toc_jp.xml
Whereas some programs look like this: xmllint --valid toc.xml --noout
What's the reason that some requires two dashes instead of one? Doesn't it make sense for everyone to stick to one standard (i.e. a single dash will do).