Skip to content
Snippets Groups Projects
Commit e9e4df8e authored by Michele Alberti's avatar Michele Alberti
Browse files

Compute solver name list in help message.

parent 181bcab3
No related branches found
No related tags found
No related merge requests found
...@@ -119,9 +119,17 @@ let verify_cmd = ...@@ -119,9 +119,17 @@ let verify_cmd =
let cmdname = "verify" in let cmdname = "verify" in
let docv_solver = "SOLVER" in let docv_solver = "SOLVER" in
let solver = let solver =
let solver_names =
List.map ~f:(fun s -> String.lowercase (Solver.show s)) Solver.defaults
in
let doc = let doc =
"The solver to use for verification. \ Format.asprintf
$(docv) must be either `pyrat' or `marabou'." "The solver to use for verification. \
$(docv) must be chosen among: %a."
(Format.pp_print_list
~pp_sep:(fun fmt () -> Format.pp_print_string fmt ", ")
Format.pp_print_string)
solver_names
in in
let solvers = let solvers =
Arg.enum Arg.enum
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment