diff options
Diffstat (limited to 'src/cli.zig')
-rw-r--r-- | src/cli.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cli.zig b/src/cli.zig index 152661eff..d6c83d3ce 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -308,8 +308,10 @@ pub const Arguments = struct { .allocator = allocator, }) catch |err| { // Report useful error and exit + clap.help(Output.errorWriter(), ¶ms) catch {}; + Output.errorWriter().writeAll("\n") catch {}; diag.report(Output.errorWriter(), err) catch {}; - return err; + Global.exit(1); }; if (args.flag("--version")) { |