Skip to content

Commit

Permalink
Fix parse_argv function.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedretaber committed Nov 19, 2024
1 parent 4ebcd8f commit d7aba93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/verify.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ let rec parse_argv args = function
| [] -> args
| "--timeout" :: timeout :: tail ->
begin match int_of_string_opt timeout with
| Some timeout -> parse_options { args with timeout } tail
| Some timeout -> parse_argv { args with timeout } tail
| None -> failwith @@ Printf.sprintf "Invalid timeout: %s" timeout
end
| filename :: tail -> parse_options { args with filename } tail
| filename :: tail -> parse_argv { args with filename } tail

let _ =
let args = parse_argv default_args @@ List.tl @@ Array.to_list Sys.argv in
Expand Down

0 comments on commit d7aba93

Please sign in to comment.