3 ms·
For whatever reason, the Java tools have had these from the beginning. It's rubbish but you get used to it. More recently, they have been using double hyphens f
by twic 5y ago
For whatever reason, the Java tools have had these from the beginning. It's rubbish but you get used to it. More recently, they have been using double hyphens for long flags. So now you don't even know which it will be! And of course, there are extra options hidden under -XX. And flags which take arguments use inconsistent separators. So a command line might look like this:
java -agentpath:/opt/agent.jar --module-path /opt/modules -XX:HeapDumpPath=/tmp/heapdumps
- nl 5y ago> For whatever reason, the Java tools have had these from the beginning. The double hyphen thing was standardised by the GNU project. James Gosling didn't like GNU (I think based on something that happened in the Lisp days?).