authorgravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2025-09-18 23:03:53+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-09-18 22:15:57+02:00
log19943f0f2169d5dd1d9499512dd94cb6d03dd94f
treeb866ee09d6c69efe0ff5dac121b56357fb527cf9
parentd6b4e1918b77e2992038d385d0951c7c926703a1

zig fmt help: mention that the argument can be a directory

I’ve been typing `zig fmt **/.zig` for a long time, until I discovered that the argument can actually be a directory. Mention this feature explicitly in the help message.

1 files changed, 1 insertions(+), 1 deletions(-)

src/fmt.zig+1-1
......@@ -156,7 +156,7 @@ pub fn run(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
156156 }
157157
158158 if (input_files.items.len == 0) {
159 fatal("expected at least one source file argument", .{});
159 fatal("expected at least one file or directory argument", .{});
160160 }
161161
162162 var stdout_buffer: [4096]u8 = undefined;