Don't show error trace when bar args

This commit is contained in:
Paul Campbell 2022-01-14 07:38:50 +00:00
parent b19b1751b5
commit 683d71ff8b

View file

@ -66,7 +66,7 @@ fn parseArgs(allocator: mem.Allocator) !Config {
var diag = clap.Diagnostic{};
var args = clap.parse(clap.Help, &params, .{ .diagnostic = &diag }) catch |err| {
diag.report(io.getStdErr().writer(), err) catch {};
return err;
return error.EarlyExit;
};
defer args.deinit();