From 683d71ff8b79d3821002df9850ab40cb5ca686f7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 14 Jan 2022 07:38:50 +0000 Subject: [PATCH] Don't show error trace when bar args --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 2908980..9a1a7a0 100644 --- a/src/main.zig +++ b/src/main.zig @@ -66,7 +66,7 @@ fn parseArgs(allocator: mem.Allocator) !Config { var diag = clap.Diagnostic{}; var args = clap.parse(clap.Help, ¶ms, .{ .diagnostic = &diag }) catch |err| { diag.report(io.getStdErr().writer(), err) catch {}; - return err; + return error.EarlyExit; }; defer args.deinit();