4c14bfd518
* Better naming for variables * Follow naming style of enums * Use `writer()` instead of `outStream()` * Change many initializers to be a one liner * Don't explicitly initialize fields to their default value
14 lines
343 B
Zig
14 lines
343 B
Zig
const clap = @import("clap");
|
|
const std = @import("std");
|
|
|
|
pub fn main() !void {
|
|
const params = comptime [_]clap.Param(clap.Help){
|
|
clap.parseParam("-h, --help Display this help and exit.") catch unreachable,
|
|
};
|
|
|
|
var args = try clap.parse(clap.Help, ¶ms, .{});
|
|
defer args.deinit();
|
|
|
|
_ = args.flag("--helps");
|
|
}
|