diff options
Diffstat (limited to '')
| -rw-r--r-- | example/simple-error.zig | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/example/simple-error.zig b/example/simple-error.zig deleted file mode 100644 index c04a9c6..0000000 --- a/example/simple-error.zig +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | const clap = @import("clap"); | ||
| 2 | const std = @import("std"); | ||
| 3 | |||
| 4 | pub fn main() !void { | ||
| 5 | const params = comptime [_]clap.Param(clap.Help){ | ||
| 6 | clap.parseParam("-h, --help Display this help and exit.") catch unreachable, | ||
| 7 | }; | ||
| 8 | |||
| 9 | var args = try clap.parse(clap.Help, ¶ms, .{}); | ||
| 10 | defer args.deinit(); | ||
| 11 | |||
| 12 | _ = args.flag("--helps"); | ||
| 13 | } | ||