summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-03-14 15:58:32 +0100
committerYorhel <git@yorhel.nl>2022-03-14 15:58:41 +0100
commit1a3de55e684e83ceacc16afa1b48582d32c6f7fe (patch)
tree797ab802c0dad063e50d0c147989bceb33786c0b
parent1f46dacf128de3fd281caf50c1578b44f7086e32 (diff)
Still accept "eigth-block" typo argument for compat
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
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();