summaryrefslogtreecommitdiff
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
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 '')
-rw-r--r--README.md6
-rw-r--r--example/usage.zig6
2 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 4576ace..646c052 100644
--- a/README.md
+++ b/README.md
@@ -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}
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}