Skip to content

Commit a94fe56

Browse files
Accept method name as argument in JBMC and janalyzer
simplifies CLI as --function option can be omitted.
1 parent 0aac588 commit a94fe56

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

jbmc/src/janalyzer/janalyzer_parse_options.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,8 @@ void janalyzer_parse_optionst::help()
751751
"\n"
752752
" janalyzer [-?] [-h] [--help] show help\n"
753753
" janalyzer\n"
754+
HELP_JAVA_METHOD_NAME
755+
" janalyzer\n"
754756
HELP_JAVA_CLASS_NAME
755757
" janalyzer\n"
756758
HELP_JAVA_JAR

jbmc/src/java_bytecode/java_bytecode_language.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ Author: Daniel Kroening, [email protected]
143143
" archives to search for class files.\n" \
144144
" --main-class class-name set the name of the main class\n"
145145

146+
#define HELP_JAVA_METHOD_NAME /* NOLINT(*) */ \
147+
" method-name fully qualified name of method\n" \
148+
" used as entry point, e.g.\n" \
149+
" mypackage.Myclass.foo:(I)Z\n"
150+
146151
#define HELP_JAVA_CLASS_NAME /* NOLINT(*) */ \
147152
" class-name name of class\n" \
148153
" The entry point is the method specified by\n" /* NOLINT(*) */ \

jbmc/src/jbmc/jbmc_parse_options.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,8 @@ void jbmc_parse_optionst::help()
10511051
"\n"
10521052
" jbmc [-?] [-h] [--help] show help\n"
10531053
" jbmc\n"
1054+
HELP_JAVA_METHOD_NAME
1055+
" jbmc\n"
10541056
HELP_JAVA_CLASS_NAME
10551057
" jbmc\n"
10561058
HELP_JAVA_JAR

0 commit comments

Comments
 (0)