| author | |
| committer | |
| log | 19943f0f2169d5dd1d9499512dd94cb6d03dd94f |
| tree | b866ee09d6c69efe0ff5dac121b56357fb527cf9 |
| parent | d6b4e1918b77e2992038d385d0951c7c926703a1 |
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; |