diff options
Diffstat (limited to '')
| -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 f73da69..5df215b 100644 --- a/example/comptime-clap.zig +++ b/example/comptime-clap.zig | |||
| @@ -7,7 +7,7 @@ pub fn main() !void { | |||
| 7 | const allocator = std.heap.direct_allocator; | 7 | const allocator = std.heap.direct_allocator; |
| 8 | 8 | ||
| 9 | // First we specify what parameters our program can take. | 9 | // First we specify what parameters our program can take. |
| 10 | // We can use `parseParam` parse a string to a `Param(Help)` | 10 | // We can use `parseParam` to parse a string to a `Param(Help)` |
| 11 | const params = comptime [_]clap.Param(clap.Help){ | 11 | const params = comptime [_]clap.Param(clap.Help){ |
| 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, |