summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGravatar J.R. "hiljusti" Hill2021-07-06 02:00:25 -0700
committerGravatar GitHub2021-07-06 09:00:25 +0000
commitf1c0a9fda67a2c720db22bf2c109127ac507a32c (patch)
tree3e0bc2e24d16d22197d63018f08689f6acfc32d4 /example
parentFix all new compiler errors from zig master (diff)
downloadzig-clap-f1c0a9fda67a2c720db22bf2c109127ac507a32c.tar.gz
zig-clap-f1c0a9fda67a2c720db22bf2c109127ac507a32c.tar.xz
zig-clap-f1c0a9fda67a2c720db22bf2c109127ac507a32c.zip
Update example of `usage` (#45)
Diffstat (limited to 'example')
-rw-r--r--example/usage.zig6
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}