summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2019-08-17 18:48:06 +0200
committerGravatar Jimmi Holst Christensen2019-08-17 18:48:06 +0200
commit3990ea204ce06c470ff9401eb5af8752dce800f0 (patch)
tree57d8185833d12730666b350506149d00472ee092 /example
parentadd missing word (diff)
downloadzig-clap-3990ea204ce06c470ff9401eb5af8752dce800f0.tar.gz
zig-clap-3990ea204ce06c470ff9401eb5af8752dce800f0.tar.xz
zig-clap-3990ea204ce06c470ff9401eb5af8752dce800f0.zip
make help message look more like other tools
Diffstat (limited to 'example')
-rw-r--r--example/comptime-clap.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/comptime-clap.zig b/example/comptime-clap.zig
index 5df215b..8e0eb12 100644
--- a/example/comptime-clap.zig
+++ b/example/comptime-clap.zig
@@ -9,8 +9,8 @@ pub fn main() !void {
9 // First we specify what parameters our program can take. 9 // First we specify what parameters our program can take.
10 // We can use `parseParam` to parse a string to a `Param(Help)` 10 // We can use `parseParam` to parse a string to a `Param(Help)`
11 const params = comptime [_]clap.Param(clap.Help){ 11 const params = comptime [_]clap.Param(clap.Help){
12 clap.parseParam("-h, --help Display this help and exit. ") catch unreachable, 12 clap.parseParam("-h, --help Display this help and exit. ") catch unreachable,
13 clap.parseParam("-n, --number=NUM An option parameter, which takes a value.") catch unreachable, 13 clap.parseParam("-n, --number <NUM> An option parameter, which takes a value.") catch unreachable,
14 clap.Param(clap.Help){ 14 clap.Param(clap.Help){
15 .takes_value = true, 15 .takes_value = true,
16 }, 16 },