+int flag_complexity = 0;
+int flag_assert = 1;
+
+int pedantic = 0;
+
+\f
+
+/* This is used to mark options with no short value. */
+#define LONG_OPT(Num) ((Num) + 128)
+
+#define OPT_HELP LONG_OPT (0)
+#define OPT_VERSION LONG_OPT (1)
+#define OPT_ENCODING LONG_OPT (2)
+
+static const struct option options[] =
+{
+ { "help", no_argument, NULL, OPT_HELP },
+ { "version", no_argument, NULL, OPT_VERSION },
+ { "print-main", no_argument, &flag_find_main, 1 },
+ { "list-filename", no_argument, &flag_list_filename, 1 },
+ { "list-class", no_argument, &flag_dump_class, 1 },
+ { "encoding", required_argument, NULL, OPT_ENCODING },
+ { "complexity", no_argument, &flag_complexity, 1 },
+ { "no-assert", no_argument, &flag_assert, 0 },
+ { "assert", no_argument, &flag_assert, 1 },
+ { NULL, no_argument, NULL, 0 }
+};
+
+static void
+usage (void)
+{
+ fprintf (stderr, _("Try 'jv-scan --help' for more information.\n"));
+ exit (1);
+}
+
+static void
+help (void)
+{
+ printf (_("Usage: jv-scan [OPTION]... FILE...\n\n"));
+ printf (_("Print useful information read from Java source files.\n\n"));
+ printf (_(" --no-assert Don't recognize the assert keyword\n"));
+ printf (_(" --complexity Print cyclomatic complexity of input file\n"));
+ printf (_(" --encoding NAME Specify encoding of input file\n"));
+ printf (_(" --print-main Print name of class containing 'main'\n"));
+ printf (_(" --list-class List all classes defined in file\n"));
+ printf (_(" --list-filename Print input filename when listing class names\n"));
+ printf (_(" -o FILE Set output file name\n"));
+ printf ("\n");
+ printf (_(" --help Print this help, then exit\n"));
+ printf (_(" --version Print version number, then exit\n"));
+ printf ("\n");
+ printf (_("For bug reporting instructions, please see:\n"
+ "%s.\n"), bug_report_url);
+ exit (0);
+}
+
+static void
+version (void)
+{
+ printf ("jv-scan (GCC) %s\n\n", version_string);
+ printf ("Copyright %s 2004 Free Software Foundation, Inc.\n", _("(C)"));
+ printf (_("This is free software; see the source for copying conditions. There is NO\n"
+ "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"));
+ exit (0);
+}