We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f3711 commit 0594b39Copy full SHA for 0594b39
1 file changed
build/ClarParser.zig
@@ -7,6 +7,10 @@ pub fn main(init: std.process.Init) !void {
7
const arena = init.arena.allocator();
8
const cwd = std.Io.Dir.cwd();
9
const args = try init.minimal.args.toSlice(arena);
10
+ if (args.len != 2) {
11
+ std.log.err("expected exactly one argument, but received: {d}", .{args.len});
12
+ return error.InvalidArgs;
13
+ }
14
const input = try cwd.openFile(io, args[1], .{});
15
defer input.close(io);
16
0 commit comments