cli args support optional types

This commit is contained in:
Mitchell Hashimoto
2022-05-19 15:20:28 -07:00
parent 1d0724330e
commit 57f257fd77
3 changed files with 24 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ pub fn create(alloc: Allocator, loop: libuv.Loop, config: *const Config) !*Windo
errdefer pty.deinit();
// Create our child process
const path = (try Command.expandPath(alloc, "sh")) orelse
const path = (try Command.expandPath(alloc, config.command orelse "sh")) orelse
return error.CommandNotFound;
defer alloc.free(path);