From 5ee6b6021c8e937d102ac71449be6326b99b624e Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Thu, 12 Nov 2026 10:53:03 +0000 Subject: [PATCH] cli: assert --load-level stays out of run --help Last item of issue #2 phase 4 (CLI & output): the per-command help test now checks that the removed flag does not resurface in the help text. --- src/cli.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.zig b/src/cli.zig index 6133515..da6e3db 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -432,6 +432,8 @@ test "per-command help" { const r = try runCaptured(arena.allocator(), &.{ "run", "--help" }, null); try std.testing.expectEqual(exit_ok, r.code); try std.testing.expect(std.mem.indexOf(u8, r.out, "--tag") != null); + // issue #2 removed the load levels: the flag must not resurface in the help. + try std.testing.expect(std.mem.indexOf(u8, r.out, "load-level") == null); const s = try runCaptured(arena.allocator(), &.{ "service", "--help" }, null); try std.testing.expect(std.mem.indexOf(u8, s.out, "restart") != null); }