if !G.trace >= 1 then Y.utime_stamp "at exit"
in
let help =
- "Usage: helena [ -LPVXdgilnopqtx1 | -Ts <number> | -MO <dir> | -c <file> | -ahkmr <string> | -be <age> ]* [ <file> ]*\n\n" ^
+ "Usage: helena [ -LPVXdgilnoqtux01 | -Ts <number> | -MO <dir> | -p <file> | -ahkmr <string> | -be <age> ]* [ <file> ]*\n\n" ^
"Trace levels: 0 just errors (default), 1 time stamps, 2 processed files, 3 processed objects,\n" ^
" 4 typing information, 5 conversion information, 6 reduction information,\n" ^
" 7 level disambiguation\n\n" ^
"Stages: 0 parsing, 1 to intermediate, 2 to untrusted, 3 to trusted (default)\n\n" ^
"Supported manages: \"ma2\" (Grafite NG), \"v8\" (Gallina 8), \"elpi1\" \"elpi2\" (lambda-Prolog)\n"
in
- let help_L = " show lexer debug information" in
- let help_M = "<dir> set location of output directory (manager) to <dir> (default: current directory)" in
- let help_O = "<dir> set location of output directory (XML) to <dir> (default: current directory)" in
- let help_P = " show parser debug information" in
- let help_T = "<number> set trace level (see above)" in
- let help_V = " show version information" in
- let help_X = " clear options" in
+ let help_L = " [lexer] Show lexer debug information" in
+ let help_M = "<dir> [manager] Set location of output directory (manager) to <dir> (default: current directory)" in
+ let help_O = "<dir> [output] Set location of output directory (XML) to <dir> (default: current directory)" in
+ let help_P = " [parser] Show parser debug information" in
+ let help_T = "<number> [trace] Set trace level (see above)" in
+ let help_V = " [version] Show version information" in
+ let help_X = " Clear options" in
- let help_a = "<string> set prefix of numeric identifiers (default: empty)" in
- let help_b = "<age> begin trace at this global constant (default: first)" in
- let help_c = "<file> set preamble to this file (default: empty)" in
- let help_d = " show summary information (requires trace >= 2)" in
- let help_e = "<age> end trace at this global constant (default: last)" in
- let help_g = " always expand global definitions" in
- let help_h = "<string> set type hierarchy (default: \"Z1\")" in
- let help_i = " show local references by index" in
- let help_k = "<string> set kernel version (default: \"V3\")" in
- let help_l = " disambiguate binders layer (Automath)" in
- let help_m = "<string> export kernel entities for this manager (see above, default: no manager)" in
- let help_n = " use extended (i.e. native) applications (Automath)" in
- let help_o = " activate sort inclusion (default: false)" in
- let help_p = " preprocess source (Automath)" in
- let help_q = " disable quotation of identifiers" in
- let help_r = "<string> set initial segment of URI hierarchy (default: empty)" in
- let help_s = "<number> set translation stage (see above)" in
- let help_t = " type check (version 1)" in
- let help_x = " export kernel entities (XML)" in
-
- let help_1 = " parse files with streaming policy" in
+ let help_a = "<string> [alpha] Set prefix of numeric identifiers (default: empty)" in
+ let help_b = "<age> [begin] Begin trace at this global constant (default: first)" in
+ let help_d = " [data] Show summary information (requires trace >= 2)" in
+ let help_e = "<age> [end] End trace at this global constant (default: last)" in
+ let help_g = " [global] Always expand global definitions (default: false)" in
+ let help_h = "<string> [hierarchy] Set type hierarchy (default: \"Z1\")" in
+ let help_i = " [indexes] Show local references by index" in
+ let help_k = "<string> [kernel] Set kernel version (default: \"V3\")" in
+ let help_l = " [layer] Disambiguate binders layer (Automath)" in
+ let help_m = "<string> [manager] Export kernel entities for this manager (see above, default: no manager)" in
+ let help_n = " [names] Show short constants (default: qualified constants)" in
+ let help_o = " [objects] Export kernel entities (XML)" in
+ let help_p = "<file> [preamble] Set preamble to this file (default: empty)" in
+ let help_q = " [quote] Disable quotation of identifiers (default: false)" in
+ let help_r = "<string> [root] Set initial segment of URI hierarchy (default: empty)" in
+ let help_s = "<number> [stage] Set translation stage (see above)" in
+ let help_t = " [type] Type check (default: validate)" in
+ let help_u = " [upsilon] Activate type comparison by sort inclusion (default: false)" in
+ let help_x = " [extended] Use extended applications (Automath)" in
+ let help_0 = " [zero] Preprocess source (Automath)" in
+ let help_1 = " [one] parse files with streaming policy" in
at_exit exit;
Arg.parse [
("-L", Arg.Set G.debug_lexer, help_L);
("-X", Arg.Unit clear_options, help_X);
("-a", Arg.String ((:=) G.alpha), help_a);
("-b", Arg.Int ((:=) G.first), help_b);
- ("-c", Arg.String ((:=) G.preamble), help_c);
("-d", Arg.Unit set_summary, help_d);
("-e", Arg.Int ((:=) G.last), help_e);
("-g", Arg.Set G.expand, help_g);
("-k", Arg.String set_kernel, help_k);
("-l", Arg.Set G.cc, help_l);
("-m", Arg.String set_manager, help_m);
- ("-n", Arg.Set G.extended, help_n);
- ("-o", Arg.Set G.si, help_o);
- ("-p", Arg.Unit set_preprocess, help_p);
+ ("-n", Arg.Set G.short, help_n);
+ ("-o", Arg.Set export, help_o);
+ ("-p", Arg.String ((:=) G.preamble), help_p);
("-q", Arg.Set G.unquote, help_q);
("-r", Arg.String ((:=) root), help_r);
("-s", Arg.Int ((:=) G.stage), help_s);
("-t", Arg.Clear version, help_t);
- ("-x", Arg.Set export, help_x);
+ ("-u", Arg.Set G.si, help_u);
+ ("-x", Arg.Set G.extended, help_x);
+ ("-0", Arg.Unit set_preprocess, help_0);
("-1", Arg.Set streaming, help_1);
] process_file help