diff options
| author | 2021-07-06 02:00:25 -0700 | |
|---|---|---|
| committer | 2021-07-06 09:00:25 +0000 | |
| commit | f1c0a9fda67a2c720db22bf2c109127ac507a32c (patch) | |
| tree | 3e0bc2e24d16d22197d63018f08689f6acfc32d4 /example | |
| 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-- | example/usage.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/usage.zig b/example/usage.zig index 7956570..90fa310 100644 --- a/example/usage.zig +++ b/example/usage.zig | |||
| @@ -8,9 +8,9 @@ pub fn main() !void { | |||
| 8 | try clap.usage( | 8 | try clap.usage( |
| 9 | std.io.getStdErr().writer(), | 9 | std.io.getStdErr().writer(), |
| 10 | comptime &.{ | 10 | comptime &.{ |
| 11 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, | 11 | clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, |
| 12 | clap.parseParam("-v, --version Output version information and exit.") catch unreachable, | 12 | clap.parseParam("-v, --version Output version information and exit. ") catch unreachable, |
| 13 | clap.parseParam(" --value <N> Output version information and exit.") catch unreachable, | 13 | clap.parseParam(" --value <N> An option parameter, which takes a value.") catch unreachable, |
| 14 | }, | 14 | }, |
| 15 | ); | 15 | ); |
| 16 | } | 16 | } |