]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gij.cc (main): Handle -? and -X.
authorTom Tromey <tromey@redhat.com>
Tue, 12 Aug 2003 21:35:18 +0000 (21:35 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 12 Aug 2003 21:35:18 +0000 (21:35 +0000)
From-SVN: r70390

libjava/ChangeLog
libjava/gij.cc

index 758b4593553b4f4fcc0dafda5b376564465f9b48..6e72f374ffdd0a14805da6ccf807dba83bbfc69e 100644 (file)
@@ -1,3 +1,7 @@
+2003-08-12  Tom Tromey  <tromey@redhat.com>
+
+       * gij.cc (main): Handle -? and -X.
+
 2003-08-10  Jeroen Frijters  <jeroen@frijters.net>
 
        * java/awt/Container.java
index 293f3c30fd86f0ff7c575500223cf77b967b0ba4..59c2fe9a61a04da93d9e887377d650041b837fbf 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2001, 2002  Free Software Foundation
+/* Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -90,7 +90,7 @@ main (int argc, const char **argv)
       if (arg[1] == '-')
        ++arg;
 
-      if (! strcmp (arg, "-help"))
+      if (! strcmp (arg, "-help") || ! strcmp (arg, "-?"))
        help ();
       else if (! strcmp (arg, "-version"))
        {
@@ -132,6 +132,15 @@ main (int argc, const char **argv)
          // correct behavior.
          _Jv_Jar_Class_Path = argv[++i];
        }
+      else if (arg[1] == 'X')
+       {
+         if (arg[2] == '\0')
+           {
+             printf ("gij: currently no -X options are recognized\n");
+             exit (0);
+           }
+         /* Ignore other -X options.  */
+       }
       else
        {
          fprintf (stderr, "gij: unrecognized option -- `%s'\n", argv[i]);