Commit 19943f0f21

Frank Denis <github@pureftpd.org>
2025-09-18 23:03:53
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 parent d6b4e19
Changed files (1)
src/fmt.zig
@@ -156,7 +156,7 @@ pub fn run(gpa: Allocator, arena: Allocator, args: []const []const u8) !void {
     }
 
     if (input_files.items.len == 0) {
-        fatal("expected at least one source file argument", .{});
+        fatal("expected at least one file or directory argument", .{});
     }
 
     var stdout_buffer: [4096]u8 = undefined;