diff options
| author | 2020-11-10 18:31:35 +0100 | |
|---|---|---|
| committer | 2020-11-10 18:31:35 +0100 | |
| commit | cc0885a2fd8c4bbfbf8ffbe6e31a8d0540fec495 (patch) | |
| tree | d025ff320915d560a720716a77a652ff63026ff4 /example/simple.zig | |
| parent | Improve Diagnostic error message reporting (diff) | |
| download | zig-clap-cc0885a2fd8c4bbfbf8ffbe6e31a8d0540fec495.tar.gz zig-clap-cc0885a2fd8c4bbfbf8ffbe6e31a8d0540fec495.tar.xz zig-clap-cc0885a2fd8c4bbfbf8ffbe6e31a8d0540fec495.zip | |
Better parseParam
Diffstat (limited to 'example/simple.zig')
| -rw-r--r-- | example/simple.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/example/simple.zig b/example/simple.zig index f7b5953..270e344 100644 --- a/example/simple.zig +++ b/example/simple.zig | |||
| @@ -10,9 +10,7 @@ pub fn main() !void { | |||
| 10 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, | 10 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, |
| 11 | clap.parseParam("-n, --number <NUM> An option parameter, which takes a value.") catch unreachable, | 11 | clap.parseParam("-n, --number <NUM> An option parameter, which takes a value.") catch unreachable, |
| 12 | clap.parseParam("-s, --string <STR>... An option parameter which can be specified multiple times.") catch unreachable, | 12 | clap.parseParam("-s, --string <STR>... An option parameter which can be specified multiple times.") catch unreachable, |
| 13 | clap.Param(clap.Help){ | 13 | clap.parseParam("<POS>...") catch unreachable, |
| 14 | .takes_value = .One, | ||
| 15 | }, | ||
| 16 | }; | 14 | }; |
| 17 | 15 | ||
| 18 | // Initalize our diagnostics, which can be used for reporting useful errors. | 16 | // Initalize our diagnostics, which can be used for reporting useful errors. |