move Var.reset_counter () to run_ligo

This commit is contained in:
Pierre-Emmanuel Wulfman 2020-04-21 16:59:12 +02:00
parent 0bf6d09e85
commit 54dadc33d6
2 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,6 @@ let list_declarations =
(Term.ret term , Term.info ~doc cmdname) (Term.ret term , Term.info ~doc cmdname)
let run ?argv () = let run ?argv () =
Var.reset_counter ();
Term.eval_choice ?argv main [ Term.eval_choice ?argv main [
temp_ligo_interpreter ; temp_ligo_interpreter ;
compile_file ; compile_file ;

View File

@ -10,6 +10,7 @@ exception Should_exit_bad
let () = Unix.putenv "TERM" "dumb" let () = Unix.putenv "TERM" "dumb"
let run_ligo args = let run_ligo args =
Var.reset_counter ();
let argv = Array.of_list ("ligo" :: args) in let argv = Array.of_list ("ligo" :: args) in
let result = Cli.run ~argv () in let result = Cli.run ~argv () in
Term.exit_status_of_result result Term.exit_status_of_result result