bb#11094+11097 - update help message, manpage, and optparser message of clambc options

pull/8/head
Kevin Lin 11 years ago
parent cc55cf55e1
commit 8d170d58cc
  1. 10
      clambc/bcrun.c
  2. 19
      docs/man/clambc.1.in
  3. 2
      shared/optparser.c

@ -54,11 +54,15 @@ static void help(void)
printf("clambc <file> [function] [param1 ...]\n\n");
printf(" --help -h Show help\n");
printf(" --version -V Show version\n");
printf(" --debug Show debug\n");
printf(" --force-interpreter -f Force using the interpreter instead of the JIT\n");
printf(" --trust-bytecode -t Trust loaded bytecode (default yes)\n");
printf(" --info -i Print information about bytecode\n");
printf(" --printsrc -p Print bytecode source\n");
printf(" --printbcir -c Print bytecode IR\n");
printf(" --trace <level> Set bytecode trace level 0..7 (default 7)\n");
printf(" --no-trace-showsource Don't show source line during tracing\n");
printf(" --printbcir -c Print IR of bytecode signature\n");
printf(" --trace <level> -t Set bytecode trace level 0..7 (default 7)\n");
printf(" --no-trace-showsource -s Don't show source line during tracing\n");
printf(" --bytecode-statistics Collect and print bytecode execution statistics\n");
printf(" file file to test\n");
printf("\n");
return;

@ -12,6 +12,15 @@ Show help
\fB\-\-version\fR \fB\-V\fR
Show version
.TP
\fB\-\-debug\fR
Show debug
.TP
\fB\-\-force\-interpreter\fR \fB\-f\fR
Force using the interpreter instead of the JIT
.TP
\fB\-\-trust\-bytecode\fR \fB\-t\fR
Trust loaded bytecode (default yes)
.TP
\fB\-\-info\fR \fB\-i\fR
Print information about bytecode
.TP
@ -19,14 +28,20 @@ Print information about bytecode
Print bytecode source
.TP
\fB\-\-printbcir\fR \fB\-c\fR
Print bytecode IR
Print IR of bytecode signature
.TP
\fB\-\-trace\fR <level>
\fB\-\-input\fR \fB\-r\fR
Input file to run the bytecode on
.TP
\fB\-\-trace\fR <level> \fB\-l\fR
Set bytecode trace level 0..7 (default 7)
.TP
\fB\-\-no\-trace\-showsource\fR
Don't show source line during tracing
.TP
\fB\-\-bytecode\-statistics\fR
Collect and print bytecode execution statistics
.TP
file
file to test
.SH "CREDITS"

@ -141,7 +141,7 @@ const struct clam_option __clam_options[] = {
{ NULL, "trust-bytecode", 't', CLOPT_TYPE_BOOL, MATCH_BOOL, 1, NULL, 0, OPT_CLAMBC, "Trust loaded bytecode (default yes)", ""},
{ NULL, "info", 'i', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Load and print bytecode information without executing", ""},
{ NULL, "printsrc", 'p', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Print source code of bytecode", ""},
{ NULL, "printbcir", 'c', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Print bytecode representation of bytecode signature", ""},
{ NULL, "printbcir", 'c', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Print IR of bytecode signature", ""},
{ NULL, "input", 'r', CLOPT_TYPE_STRING, NULL, -1, NULL, 0, OPT_CLAMBC, "Input file to run the bytecode n", ""},
{ NULL, "trace", 'l', CLOPT_TYPE_NUMBER, MATCH_NUMBER, 7, NULL, 0, OPT_CLAMBC, "bytecode trace level",""},
{ NULL, "no-trace-showsource", 's', CLOPT_TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMBC, "Don't show source line during tracing",""},

Loading…
Cancel
Save