move Var.reset_counter () to run_ligo
This commit is contained in:
parent
0bf6d09e85
commit
54dadc33d6
@ -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 ;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user