mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 09:35:59 -04:00
cli: prefer full over all to enable everything
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user