diff --git a/src/main.zig b/src/main.zig index cb10264..4744320 100644 --- a/src/main.zig +++ b/src/main.zig @@ -51,6 +51,13 @@ fn handleMemoryCommand(memory: *mem.Memory, it: anytype) !void { const value = try std.fmt.parseUnsigned(u8, maybe_value.?, 10); _ = try memory.writeByte(addr, value); } + } else { + std.debug.print( + \\Invalid argument '{s}'. Usage: + \\ mem read + \\ mem write + \\ + , .{next_argument}); } } }