Skip to content
Snippets Groups Projects
Commit 9799803b authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Allan Blanchard
Browse files

[wp] Fix msg output by Why3 when an unknown option is passed to -wp-why3-opt

parent 98caba53
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,12 @@ let configure =
begin fun () ->
if !todo then
begin
let args = Array.of_list ("why3"::Wp_parameters.Why3Flags.get ()) in
let commands = "why3"::Wp_parameters.Why3Flags.get () in
let args = Array.of_list commands in
begin try
(* Ensure that an error message generating directly by why3 is
reported as coming from Why3, not from Frama-C. *)
Why3.Getopt.commands := commands;
Why3.Getopt.parse_all
(Why3.Debug.Args.[desc_debug;desc_debug_all;desc_debug_list])
(fun opt -> raise (Arg.Bad ("unknown option: " ^ opt)))
......
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