aboutsummaryrefslogtreecommitdiff
path: root/libjava/gij.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gij.cc')
-rw-r--r--libjava/gij.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/libjava/gij.cc b/libjava/gij.cc
index 293f3c30fd8..3b0683de03e 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.
@@ -31,7 +31,8 @@ help ()
printf (" --cp LIST set class path\n");
printf (" --classpath LIST set class path\n");
printf (" -DVAR=VAL define property VAR with value VAL\n");
- printf (" --help print this help, then exit\n");
+ printf (" -?, --help print this help, then exit\n");
+ printf (" -X print help on supported -X options, then exit\n");
printf (" --ms=NUMBER set initial heap size\n");
printf (" --mx=NUMBER set maximum heap size\n");
printf (" --showversion print version number, then keep going\n");
@@ -90,7 +91,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 +133,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]);