cli: prefer full over all to enable everything

This commit is contained in:
Halil Durak committed 2026-04-22 16:08:12 +03:00
1 parent 012fe40bb5
commit 4a4e3643f5
1 file changed
+2 -2
+2 -2
View File
@@ -440,8 +440,8 @@ pub fn Builder(comptime commands: anytype) type {
const str = args.next() orelse return error.MissingArgument;
if (std.mem.eql(u8, str, "all")) {
// "all" sets all the fields of packed struct.
if (std.mem.eql(u8, str, "full")) {
// "full" sets all the fields of packed struct.
const Int = _struct.backing_integer.?;
@field(c, option.name) = @bitCast(@as(Int, std.math.maxInt(Int)));
} else {