summaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
authorJeffrey C. Ollie <jeff@ocjtech.us>2024-12-17 13:07:48 -0600
committerJeffrey C. Ollie <jeff@ocjtech.us>2024-12-17 13:07:48 -0600
commit97a2b94c9b7d46e3466bdd7f823ed855fcf2571c (patch)
tree62d1e7a00d483f7b0aa4216cb923f0d5c547427c /src/cli
parent2725d5ecb3140ffcdc6700b58f70a89bf8d14a36 (diff)
core: allow cli actions to use arg parsing diagnostics
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/args.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/args.zig b/src/cli/args.zig
index 454ca360e..ea0549da0 100644
--- a/src/cli/args.zig
+++ b/src/cli/args.zig
@@ -126,7 +126,7 @@ pub fn parse(
// The error set is dependent on comptime T, so we always add
// an extra error so we can have the "else" below.
- const ErrSet = @TypeOf(err) || error{Unknown};
+ const ErrSet = @TypeOf(err) || error{ Unknown, OutOfMemory };
const message: [:0]const u8 = switch (@as(ErrSet, @errorCast(err))) {
// OOM is not recoverable since we need to allocate to
// track more error messages.