Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flush after printing banner (fixes #475) #477

Merged
merged 1 commit into from
Jun 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let argspec = Arg.align
"-o", Arg.Set_string out_file, " output file";

"--version",
Arg.Unit (fun () -> printf "%s\n" banner; exit 0), " show version";
Arg.Unit (fun () -> printf "%s\n%!" banner; exit 0), " show version";
"--map", Arg.Set Flags.source_map, " output source map";

"-t", Arg.Set Flags.trace, " activate tracing";
Expand Down Expand Up @@ -70,7 +70,7 @@ let process_files files : unit =
then exit_on_none (Pipeline.interpret_ir_files files)
else exit_on_none (Pipeline.run_files files)
| Interact ->
printf "%s\n" banner;
printf "%s\n%!" banner;
exit_on_none (Pipeline.run_files_and_stdin files)
| Check ->
Diag.run (Pipeline.check_files files)
Expand Down