aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2003-08-12 21:35:18 +0000
committerTom Tromey <tromey@gcc.gnu.org>2003-08-12 21:35:18 +0000
commit35e6511a747ac8fd49a70401ba99857b57c16e5c (patch)
tree61cbb3d031c3a8c82fa1f03ab3008f60a9f7ab41 /libjava
parentb4966b1ba577ded8cec0a764b9702267e8021832 (diff)
downloadgcc-35e6511a747ac8fd49a70401ba99857b57c16e5c.zip
gcc-35e6511a747ac8fd49a70401ba99857b57c16e5c.tar.gz
gcc-35e6511a747ac8fd49a70401ba99857b57c16e5c.tar.bz2
* gij.cc (main): Handle -? and -X.
From-SVN: r70390
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog4
-rw-r--r--libjava/gij.cc13
2 files changed, 15 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 758b459..6e72f37 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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
diff --git a/libjava/gij.cc b/libjava/gij.cc
index 293f3c3..59c2fe9 100644
--- a/libjava/gij.cc
+++ b/libjava/gij.cc
@@ -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]);