5 ms·
What's silly about it?
by dscrd 13y ago
What's silly about it?
- plorkyeran 13y agoIt's pointlessly different from the syntax everything else uses.
- nknighthb 13y agoUm, no, it's not. The equals sign is not required, it is simply supported (as it is with many if not most other command line flag parsers), and single-dash is hardly unusual outside GNU tools. It may be different from what you are accustomed to, but you are not omniscient.
- icebraining 13y agoOn what systems is single-dash plus word (instead of single letter) common? Not trying to argue, I barely use anything besides GNU/Linux, but even in the Plan9 docs I only remember seeing single letter options after a dash.
- nknighthb 13y agoBSD, Windows. By the way, it's not exactly unknown in GNU land, either. Ever looked at the GCC flags? Here are a few: http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
- ushi 13y agoGNU find command: http://linux.die.net/man/1/find http://linux.die.net/man/1/find
- randallsquared 13y agoGuideline 3 in http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02 http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_... suggests that multiple characters after a single dash should be multiple arguments. And, for example, GNU chose a different syntax ( --foo=bar ) for long options. (edited to clarify that I actually don't know historically why they chose that)
- adsche 13y ago@icebraining (can't reply directly) It's very common on OS X. Example: http://ss64.com/osx/lipo.html http://ss64.com/osx/lipo.html
- icebraining 13y agoProbably the fact that it diverges from the de-facto standard in GNU systems, making it potentially harder to remember.