Fix gij --verbose command line parsing
Mark Wielaard
mark@klomp.org
Fri Feb 11 00:21:00 GMT 2005
Hi,
gij --help tells us to use --verbose or --verbose:class, but the actual
command line parsing got it wrong. Since all long options start with --
this one should also.
2005-02-10 Mark Wielaard <mark@klomp.org>
* gij.cc (main): Correctly parse --verbose.
OK to commit?
Mark
--- gij.cc 25 Nov 2004 03:46:56 -0000 1.24
+++ gij.cc 10 Feb 2005 23:33:52 -0000
@@ -134,7 +134,7 @@
// correct behavior.
_Jv_Jar_Class_Path = argv[++i];
}
- else if (! strcmp (arg, "-verbose") || ! strcmp (arg, "-verbose:class"))
+ else if (! strcmp (arg, "--verbose") || ! strcmp (arg, "--verbose:class"))
gcj::verbose_class_flag = true;
else if (arg[1] == 'X')
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050211/18365933/attachment.sig>
More information about the Java-patches
mailing list