diff options
| author | 2021-07-06 02:00:25 -0700 | |
|---|---|---|
| committer | 2021-07-06 09:00:25 +0000 | |
| commit | f1c0a9fda67a2c720db22bf2c109127ac507a32c (patch) | |
| tree | 3e0bc2e24d16d22197d63018f08689f6acfc32d4 /README.md | |
| parent | Fix all new compiler errors from zig master (diff) | |
| download | zig-clap-f1c0a9fda67a2c720db22bf2c109127ac507a32c.tar.gz zig-clap-f1c0a9fda67a2c720db22bf2c109127ac507a32c.tar.xz zig-clap-f1c0a9fda67a2c720db22bf2c109127ac507a32c.zip | |
Update example of `usage` (#45)
Diffstat (limited to '')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -224,9 +224,9 @@ pub fn main() !void { | |||
| 224 | try clap.usage( | 224 | try clap.usage( |
| 225 | std.io.getStdErr().writer(), | 225 | std.io.getStdErr().writer(), |
| 226 | comptime &.{ | 226 | comptime &.{ |
| 227 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, | 227 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, |
| 228 | clap.parseParam("-v, --version Output version information and exit.") catch unreachable, | 228 | clap.parseParam("-v, --version Output version information and exit. ") catch unreachable, |
| 229 | clap.parseParam(" --value <N> Output version information and exit.") catch unreachable, | 229 | clap.parseParam(" --value <N> An option parameter, which takes a value.") catch unreachable, |
| 230 | }, | 230 | }, |
| 231 | ); | 231 | ); |
| 232 | } | 232 | } |