summaryrefslogtreecommitdiff
path: root/example/README.md.template
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2022-03-23 20:05:28 +0100
committerGravatar Komari Spaghetti2022-03-23 21:48:20 +0100
commit5166a15378a9c32d9b680417807000ba65d06141 (patch)
treebf5b37a04d9bd41128971e7bfd5e1dccef30bb36 /example/README.md.template
parentRefactor parseParam into a state machine (diff)
downloadzig-clap-5166a15378a9c32d9b680417807000ba65d06141.tar.gz
zig-clap-5166a15378a9c32d9b680417807000ba65d06141.tar.xz
zig-clap-5166a15378a9c32d9b680417807000ba65d06141.zip
Add parseParams and friends
Diffstat (limited to 'example/README.md.template')
-rw-r--r--example/README.md.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/README.md.template b/example/README.md.template
index 9fbc1cc..c19c1cd 100644
--- a/example/README.md.template
+++ b/example/README.md.template
@@ -35,8 +35,8 @@ The fields in `args` are typed. The type is based on the name of the value the p
35Since `--number` takes a `usize` the field `res.args.number` has the type `usize`. 35Since `--number` takes a `usize` the field `res.args.number` has the type `usize`.
36 36
37Note that this is only the case because `clap.parsers.default` has a field called `usize` which 37Note that this is only the case because `clap.parsers.default` has a field called `usize` which
38contains a parser that returns `usize`. You can pass in something other than `clap.parsers.default` 38contains a parser that returns `usize`. You can pass in something other than
39if you want some other mapping. 39`clap.parsers.default` if you want some other mapping.
40 40
41```zig 41```zig
42{s} 42{s}