diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cli.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cli.zig b/src/cli.zig index 3d1e25abf..f3bcf97a2 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -1094,7 +1094,11 @@ pub const Command = struct { .RunCommand => { const ctx = try Command.Context.create(allocator, log, .RunCommand); if (ctx.positionals.len > 0) { - _ = try RunCommand.exec(ctx, false, true); + if (try RunCommand.exec(ctx, false, true)) { + return; + } + + Global.exit(1); } }, .UpgradeCommand => { |