flags: further cleanup after Zig 0.10
Long live the self hosted compiler!
This commit is contained in:
@ -63,12 +63,10 @@ pub fn main() !void {
|
||||
}
|
||||
|
||||
fn _main() !void {
|
||||
// This line is here because of https://github.com/ziglang/zig/issues/7807
|
||||
const argv: [][*:0]const u8 = os.argv;
|
||||
const result = flags.parser([*:0]const u8, &.{
|
||||
.{ .name = "h", .kind = .boolean },
|
||||
.{ .name = "version", .kind = .boolean },
|
||||
}).parse(argv[1..]) catch {
|
||||
}).parse(os.argv[1..]) catch {
|
||||
try io.getStdErr().writeAll(usage);
|
||||
os.exit(1);
|
||||
};
|
||||
|
Reference in New Issue
Block a user