diff --git a/river/command/rule.zig b/river/command/rule.zig index 773975e..562b6f2 100644 --- a/river/command/rule.zig +++ b/river/command/rule.zig @@ -52,6 +52,7 @@ pub fn ruleAdd(_: *Seat, args: []const [:0]const u8, _: *?[]const u8) Error!void .tag => 1, }; if (result.args.len > positional_arguments_count) return Error.TooManyArguments; + if (result.args.len < positional_arguments_count) return Error.NotEnoughArguments; const app_id_glob = result.flags.@"app-id" orelse "*"; const title_glob = result.flags.title orelse "*";