* gij.cc (main): Handle -? and -X.

From-SVN: r70390
This commit is contained in:
Tom Tromey 2003-08-12 21:35:18 +00:00 committed by Tom Tromey
parent b4966b1ba5
commit 35e6511a74
2 changed files with 15 additions and 2 deletions

View 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

View 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]);