diff options
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 9a8cd6da..56d04669 100644 --- a/src/main.zig +++ b/src/main.zig @@ -33,6 +33,7 @@ const help_text = \\ \\Options: \\ --tty start as one shell pane already in tty mode + \\ -n <count> initial shell panes: 1 (default) or 3 (classic) \\ --tty-toggle <key> use Ctrl-<key> to enter/leave tty mode \\ -l <dump.zon> load a dump of another instance (see Dump) \\ -h, --help show this help and exit @@ -78,6 +79,10 @@ fn nativeMain(init: std.process.Init) !void { i += 1; if (i >= args.len) return error.BadArgs; opts.tty_toggle = parseCtrlKey(args[i]) orelse return error.BadArgs; + } else if (std.mem.eql(u8, a, "-n")) { + i += 1; + if (i >= args.len) return error.BadArgs; + opts.shells = std.fmt.parseInt(u8, args[i], 10) catch return error.BadArgs; } else if (std.mem.eql(u8, a, "-l")) { i += 1; if (i >= args.len) return error.BadArgs; |
