diff options
| author | 2019-12-01 23:10:25 -0800 | |
|---|---|---|
| committer | 2019-12-01 23:20:09 -0800 | |
| commit | 2174a4a2e617e51fea42e114803538b9bedb9d35 (patch) | |
| tree | 7d76dca13427d585cff36c38230d368e51fb3c20 /example/comptime-clap.zig | |
| parent | Add clap.parse as the simplest way of using the lib (diff) | |
| download | zig-clap-2174a4a2e617e51fea42e114803538b9bedb9d35.tar.gz zig-clap-2174a4a2e617e51fea42e114803538b9bedb9d35.tar.xz zig-clap-2174a4a2e617e51fea42e114803538b9bedb9d35.zip | |
update for latest zig
Diffstat (limited to 'example/comptime-clap.zig')
| -rw-r--r-- | example/comptime-clap.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/comptime-clap.zig b/example/comptime-clap.zig index 4d0ace3..fde0648 100644 --- a/example/comptime-clap.zig +++ b/example/comptime-clap.zig | |||
| @@ -22,7 +22,7 @@ pub fn main() !void { | |||
| 22 | defer iter.deinit(); | 22 | defer iter.deinit(); |
| 23 | 23 | ||
| 24 | // Parse the arguments | 24 | // Parse the arguments |
| 25 | var args = try clap.ComptimeClap(clap.Help, params).parse(allocator, clap.args.OsIterator, &iter); | 25 | var args = try clap.ComptimeClap(clap.Help, ¶ms).parse(allocator, clap.args.OsIterator, &iter); |
| 26 | defer args.deinit(); | 26 | defer args.deinit(); |
| 27 | 27 | ||
| 28 | if (args.flag("--help")) | 28 | if (args.flag("--help")) |