blob: c04a9c6eb6f6e152d4904dc275924ac49080a1f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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");
}
|