summaryrefslogtreecommitdiff
path: root/libjava/gij.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-12 21:35:18 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-12 21:35:18 +0000
commitb87220f6c9fff55d0d01a650ab78d0669db3c851 (patch)
tree61cbb3d031c3a8c82fa1f03ab3008f60a9f7ab41 /libjava/gij.cc
parentf05dc27906a13bfe1f8c870c819d7ee7c4a8fbce (diff)
downloadgcc-b87220f6c9fff55d0d01a650ab78d0669db3c851.tar.gz
* gij.cc (main): Handle -? and -X.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70390 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gij.cc')
-rw-r--r--libjava/gij.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/libjava/gij.cc b/libjava/gij.cc
index 293f3c30fd8..59c2fe9a61a 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]);