This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix gij --verbose command line parsing


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')
        {

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]