diff --git a/src/cli.zig b/src/cli.zig index e1ee6a5..34a9f89 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -134,6 +134,7 @@ pub const setup_cmd: CommandT = .{ .description = "Enable symbol accentuations " ++ genVals(Accent, null) ++ ".", .short_name = 'a', .long_name = "accents", + .allow_empty = true, .val = ValueT.ofType(Accent, .{ .name = "accents_list", .alias_child_type = "[string]", diff --git a/src/main.zig b/src/main.zig index 1c3cb55..de4cf35 100644 --- a/src/main.zig +++ b/src/main.zig @@ -856,6 +856,13 @@ pub fn main() !void { if (opts.get("accents")) |accents| { core.accents = accents.val.getAllAs(Accent) catch null; + if (accents.val.isEmpty()) { + core.accents = &[_]Accent{ + .bright, + .bold, + .dim, + }; + } } if (main_cmd.checkFlag("version")) {