|
|
|
@ -14,12 +14,9 @@ module L = Logging
|
|
|
|
|
open Utils
|
|
|
|
|
|
|
|
|
|
let arg_desc =
|
|
|
|
|
let base_arg =
|
|
|
|
|
let options_to_keep = ["-results_dir"; "-project_root"] in
|
|
|
|
|
let filter arg_desc =
|
|
|
|
|
list_filter (fun desc -> let (option_name, _, _, _) = desc in list_mem string_equal option_name options_to_keep) arg_desc in
|
|
|
|
|
let desc =
|
|
|
|
|
(filter base_arg_desc) @
|
|
|
|
|
(arg_desc_filter options_to_keep base_arg_desc) @
|
|
|
|
|
[
|
|
|
|
|
"-models", Arg.String (fun filename -> JClasspath.add_models filename), Some "paths", "set the path to the jar containing the models";
|
|
|
|
|
"-debug", Arg.Unit (fun () -> JConfig.debug_mode := true), None, "write extra translation information";
|
|
|
|
@ -30,8 +27,7 @@ let arg_desc =
|
|
|
|
|
"-verbose_out", Arg.String (fun path -> JClasspath.set_verbose_out path), None,
|
|
|
|
|
"Set the path to the javac verbose output"
|
|
|
|
|
] in
|
|
|
|
|
Arg2.create_options_desc false "Parsing Options" desc in
|
|
|
|
|
base_arg
|
|
|
|
|
Arg2.create_options_desc false "Parsing Options" desc
|
|
|
|
|
|
|
|
|
|
let usage =
|
|
|
|
|
"Usage: InferJava -d compilation_dir -sources filename\n"
|
|
|
|
|