gcj flags
Tom Tromey
tromey@redhat.com
Thu Mar 22 17:18:00 GMT 2001
>>>>> "Hans" == Boehm, Hans <hans_boehm@hp.com> writes:
Hans> If the only file arguments are .java and .class files, and there
Hans> is no --main:
Hans> 1) If there is exactly one file argument, generate the --main
Hans> 2) If there is more than one, issue a warning, suggesting
Hans> --main. (This gets a little tricky if there are nonstandard
Hans> libraries involved, which might be hiding main. If none are
Hans> explicitly listed, a warning should certainly be safe.)
This seems reasonable to me. Ordinarily I don't like implicit
arguments, since sometimes they bite back in the future.
Could you submit a PR suggesting this mechanism? I like to have
things like this in Gnats so we don't lose them.
Hans> It may just be me, but I also fairly regularly found myself mistyping:
Hans> gcj --main==X X.java
Hans> which results in a fairly uninformative error message.
Please submit a (separate) PR for this too. Doing checking here is
appropriate and easy.
Tom
More information about the Java
mailing list