4 ms·
Using double -- for long named flags is a GNU-ism. Java came from Sun and so prefers the single dashes.
by AlexanderDhoore 5y ago
Using double -- for long named flags is a GNU-ism. Java came from Sun and so prefers the single dashes.
- oneeyedpigeon 5y agoBut "-help" is just "-h -e -l -p" ...
- VWWHFSfQ 4y agoWhich is also a gnuism
- oneeyedpigeon 4y agoThat's my point - "-help" violates the gnu standard.
- anjbe 4y ago“-help” being equivalent to “-h -e -l -p” is not a GNUism. It’s described by POSIX. If a utility takes the options “-a” and “-o something” and uses POSIX getopt(), then these are all equivalent: cmd -ao arg path path cmd -a -o arg path path cmd -o arg -a path path cmd -a -o arg -- path path cmd -a -oarg path path cmd -aoarg path path