Reduce the repeated output messages when using the duplicated compiler command line options (
Currently, when using the duplicated info options listed above, the compiler will output the same message multi times. It is unnecessary and not easy to read. Please see the following example. The message
javac 17-internal appears unnecessarily multiple times.
$ javac -version -version javac 17-internal javac 17-internal
And the more messages are output, the harder it is to read. Please use the following commands to see the more complicated output messages which are hard to read.
javac --full-version --full-version javac --help --help javac --help-extra --help-extra javac --help-lint --help-lint
The compiler should only output the message once when using the duplicated info options listed above.
During the option handling, when the info options listed above appear multi times, the compiler should ignore them instead of processing them. In other words, the compiler should operate like the following example.
$ javac -version -version javac 17-internal