cli: prefer full over all to enable everything

This commit is contained in:
Halil Durak
2026-04-17 17:42:32 +03:00
parent 012fe40bb5
commit 4a4e3643f5

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 {