From 1a3de55e684e83ceacc16afa1b48582d32c6f7fe Mon Sep 17 00:00:00 2001 From: Yorhel <git@yorhel.nl> Date: Mon, 14 Mar 2022 15:58:32 +0100 Subject: [PATCH] Still accept "eigth-block" typo argument for compat --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index e443a01..3425f67 100644 --- a/src/main.zig +++ b/src/main.zig @@ -186,7 +186,7 @@ fn argConfig(args: *Args, opt: Args.Option) bool { const val = args.arg(); if (std.mem.eql(u8, val, "hash")) config.graph_style = .hash else if (std.mem.eql(u8, val, "half-block")) config.graph_style = .half - else if (std.mem.eql(u8, val, "eighth-block")) config.graph_style = .eighth + else if (std.mem.eql(u8, val, "eighth-block") or std.mem.eql(u8, val, "eigth-block")) config.graph_style = .eighth else ui.die("Unknown --graph-style option: {s}.\n", .{val}); } else if (opt.is("--sort")) { var val: []const u8 = args.arg(); -- GitLab