Skip to content

Commit

Permalink
clean up self hosted main. delete unsupported commands
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jun 22, 2018
1 parent be2a4c4 commit 8866bef
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 459 deletions.
4 changes: 2 additions & 2 deletions src-self-hosted/arg.zig
Expand Up @@ -168,7 +168,7 @@ pub const Args = struct {
}

// e.g. --names value1 value2 value3
pub fn many(self: *Args, name: []const u8) ?[]const []const u8 {
pub fn many(self: *Args, name: []const u8) []const []const u8 {
if (self.flags.get(name)) |entry| {
switch (entry.value) {
FlagArg.Many => |inner| {
Expand All @@ -177,7 +177,7 @@ pub const Args = struct {
else => @panic("attempted to retrieve flag with wrong type"),
}
} else {
return null;
return []const []const u8{};
}
}
};
Expand Down

0 comments on commit 8866bef

Please sign in to comment.