diff options
| author | 2020-11-10 18:31:35 +0100 | |
|---|---|---|
| committer | 2020-11-10 18:33:15 +0100 | |
| commit | 5efa886662ea22ce9f9b0166c5132d2234102bb7 (patch) | |
| tree | b67b9e95c1751b2f97eff6667bbdd14c0bc54c63 /clap/comptime.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 'clap/comptime.zig')
| -rw-r--r-- | clap/comptime.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clap/comptime.zig b/clap/comptime.zig index df5547a..9ead41a 100644 --- a/clap/comptime.zig +++ b/clap/comptime.zig | |||
| @@ -152,9 +152,7 @@ test "" { | |||
| 152 | clap.parseParam("-b, --bb ") catch unreachable, | 152 | clap.parseParam("-b, --bb ") catch unreachable, |
| 153 | clap.parseParam("-c, --cc <V>") catch unreachable, | 153 | clap.parseParam("-c, --cc <V>") catch unreachable, |
| 154 | clap.parseParam("-d, --dd <V>...") catch unreachable, | 154 | clap.parseParam("-d, --dd <V>...") catch unreachable, |
| 155 | clap.Param(clap.Help){ | 155 | clap.parseParam("<P>") catch unreachable, |
| 156 | .takes_value = .One, | ||
| 157 | }, | ||
| 158 | }); | 156 | }); |
| 159 | 157 | ||
| 160 | var buf: [1024]u8 = undefined; | 158 | var buf: [1024]u8 = undefined; |