diff options
Diffstat (limited to 'gcc/java/jv-scan.c')
-rw-r--r-- | gcc/java/jv-scan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/java/jv-scan.c b/gcc/java/jv-scan.c index 2f7c3b9a6db..73eb3f4d535 100644 --- a/gcc/java/jv-scan.c +++ b/gcc/java/jv-scan.c @@ -64,6 +64,7 @@ int flag_find_main = 0; int flag_dump_class = 0; int flag_list_filename = 0; int flag_complexity = 0; +int flag_assert = 1; int pedantic = 0; @@ -85,6 +86,8 @@ static const struct option options[] = { "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 } }; @@ -100,6 +103,7 @@ help () { 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"); |