From 7d8a9545785b3540ebd8e87d8039fc8239f660ab Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 18 Sep 2025 23:03:53 +0200 Subject: [PATCH] zig fmt help: mention that the argument can be a directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/fmt.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmt.zig b/src/fmt.zig index 1287334132..4a3c321877 100644 --- a/src/fmt.zig +++ b/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;