blob: 3c62f0eee26934cc5ae86a84da03cd19044f63f5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const std = @import("std");
const clap = @import("clap");
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, std.heap.direct_allocator, null);
defer args.deinit();
_ = args.flag("--helps");
}
|