diff options
Diffstat (limited to 'src/host/root.zig')
| -rw-r--r-- | src/host/root.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/host/root.zig b/src/host/root.zig index d01a63f..c9cdde6 100644 --- a/src/host/root.zig +++ b/src/host/root.zig @@ -39,6 +39,8 @@ pub fn main(init: std.process.Init, linked: ?abi.Sketch) !void { while (args.next()) |arg| { if (std.mem.eql(u8, arg, "--state")) { options.state = args.next() orelse fatal("--state needs a file"); + } else if (std.mem.eql(u8, arg, "--9p")) { + options.ninep = args.next() orelse fatal("--9p needs a socket path"); } else if (std.mem.eql(u8, arg, "--fresh")) { options.fresh = true; } else if (std.mem.eql(u8, arg, "--headless")) { @@ -121,6 +123,7 @@ pub fn main(init: std.process.Init, linked: ?abi.Sketch) !void { const usage = \\usage: sketchbook [options] [LIBRARY] + \\ --9p SOCKET local 9P controls: ctl, status, log, screen.png \\ --state FILE persistent state (default: sketch.state) \\ --headless offscreen video, silent audio, no vsync \\ --script FILE play a script instead of reading devices @@ -191,9 +194,11 @@ const sdl_heap = struct { }; test { + _ = Host; _ = memory; _ = fields; _ = timeline; _ = @import("audio.zig"); _ = @import("Console.zig"); + _ = @import("control.zig"); } |
