diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -91,10 +91,10 @@ pub fn main() !void { | |||
| 91 | const allocator = std.heap.direct_allocator; | 91 | const allocator = std.heap.direct_allocator; |
| 92 | 92 | ||
| 93 | // First we specify what parameters our program can take. | 93 | // First we specify what parameters our program can take. |
| 94 | // We can use `parseParam` parse a string to a `Param(Help)` | 94 | // We can use `parseParam` to parse a string to a `Param(Help)` |
| 95 | const params = comptime [_]clap.Param(clap.Help){ | 95 | const params = comptime [_]clap.Param(clap.Help){ |
| 96 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, | 96 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, |
| 97 | clap.parseParam("-n, --number=NUM An option parameter, which takes a value.") catch unreachable, | 97 | clap.parseParam("-n, --number <NUM> An option parameter, which takes a value.") catch unreachable, |
| 98 | clap.Param(clap.Help){ | 98 | clap.Param(clap.Help){ |
| 99 | .takes_value = true, | 99 | .takes_value = true, |
| 100 | }, | 100 | }, |