diff options
| author | 2020-11-10 18:31:35 +0100 | |
|---|---|---|
| committer | 2020-11-10 18:33:15 +0100 | |
| commit | 5efa886662ea22ce9f9b0166c5132d2234102bb7 (patch) | |
| tree | b67b9e95c1751b2f97eff6667bbdd14c0bc54c63 /example/comptime-clap.zig | |
| parent | Improve Diagnostic error message reporting (diff) | |
| download | zig-clap-5efa886662ea22ce9f9b0166c5132d2234102bb7.tar.gz zig-clap-5efa886662ea22ce9f9b0166c5132d2234102bb7.tar.xz zig-clap-5efa886662ea22ce9f9b0166c5132d2234102bb7.zip | |
Better parseParam
Diffstat (limited to '')
| -rw-r--r-- | example/comptime-clap.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/example/comptime-clap.zig b/example/comptime-clap.zig index 530c7e6..e5d02ff 100644 --- a/example/comptime-clap.zig +++ b/example/comptime-clap.zig | |||
| @@ -12,9 +12,7 @@ pub fn main() !void { | |||
| 12 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, | 12 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, |
| 13 | clap.parseParam("-n, --number <NUM> An option parameter, which takes a value.") catch unreachable, | 13 | clap.parseParam("-n, --number <NUM> An option parameter, which takes a value.") catch unreachable, |
| 14 | clap.parseParam("-s, --string <STR>... An option parameter which can be specified multiple times.") catch unreachable, | 14 | clap.parseParam("-s, --string <STR>... An option parameter which can be specified multiple times.") catch unreachable, |
| 15 | clap.Param(clap.Help){ | 15 | clap.parseParam("<POS>...") catch unreachable, |
| 16 | .takes_value = .One, | ||
| 17 | }, | ||
| 18 | }; | 16 | }; |
| 19 | const Clap = clap.ComptimeClap(clap.Help, clap.args.OsIterator, ¶ms); | 17 | const Clap = clap.ComptimeClap(clap.Help, clap.args.OsIterator, ¶ms); |
| 20 | 18 | ||