This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj flags
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: Re: gcj flags
- From: Tom Tromey <tromey at redhat dot com>
- Date: 22 Mar 2001 18:26:58 -0700
- Cc: "'Per Bothner'" <per at bothner dot com>, java at gcc dot gnu dot org
- References: <140D21516EC2D3119EE7009027876644049B5CF3@hplex1.hpl.hp.com>
- Reply-To: tromey at redhat dot com
>>>>> "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