From 2f8e1f0da0c9bb90519038c897ebeed0ee445d9e Mon Sep 17 00:00:00 2001 From: Joshua Park <123624726+joshprk@users.noreply.github.com> Date: Sat, 31 May 2025 21:09:39 -0400 Subject: [PATCH] opts: no-op on human-readable --- src/main.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.zig b/src/main.zig index 33a4a83..4ca255b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -167,6 +167,7 @@ pub fn main() !void { 'A' => cmd.opts.@"almost-all" = true, 'C' => cmd.opts.shortview = .columns, 'a' => cmd.opts.all = true, + 'h' => {}, // human-readable: present for compatibility 'l' => cmd.opts.long = true, 'r' => cmd.opts.reverse_sort = true, 't' => cmd.opts.sort_by_mod_time = true, @@ -206,6 +207,8 @@ pub fn main() !void { try stderr.print("Invalid color option: '{s}'", .{val}); std.process.exit(1); }; + } else if (eql(opt, "human-readable")) { + // no-op: present for compatibility } else if (eql(opt, "hyperlinks")) { cmd.opts.hyperlinks = std.meta.stringToEnum(Options.When, val) orelse { try stderr.print("Invalid hyperlinks option: '{s}'", .{val}); -- 2.51.2