| author | |
| committer | |
| log | 7d8a9545785b3540ebd8e87d8039fc8239f660ab |
| tree | bdea2ffd5c52a84bfb605dc09e09cdbeeea9d199 |
| parent | 91eab35e08f72220fd2461bdf6da2f74aaff5c64 |
| signature |
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 { |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | 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", .{}); | |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | var stdout_buffer: [4096]u8 = undefined; |