diff options
| author | 2018-11-15 12:55:21 +0100 | |
|---|---|---|
| committer | 2018-11-15 12:55:21 +0100 | |
| commit | 877c66c87d7c91908a38bd02725b6ee51842b23f (patch) | |
| tree | f2cebe57bad2e1dde4556e7a22a887e4daa27171 /README.md | |
| parent | Added help function (diff) | |
| download | zig-clap-877c66c87d7c91908a38bd02725b6ee51842b23f.tar.gz zig-clap-877c66c87d7c91908a38bd02725b6ee51842b23f.tar.xz zig-clap-877c66c87d7c91908a38bd02725b6ee51842b23f.zip | |
Update README.md
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -141,8 +141,8 @@ try clap.help( | |||
| 141 | The `help` function is the simplest to call. It only takes an `OutStream` and a slice of | 141 | The `help` function is the simplest to call. It only takes an `OutStream` and a slice of |
| 142 | `Param([]const u8)`. This function assumes that the id of each parameter is the help message. | 142 | `Param([]const u8)`. This function assumes that the id of each parameter is the help message. |
| 143 | 143 | ||
| 144 | The `clap.helpEx` is the generic version of `help`. It can print a help message for any | 144 | The `helpEx` is the generic version of `help`. It can print a help message for any |
| 145 | `Param`, but requires some extra arguments for it to work. | 145 | `Param`, but requires some extra arguments to work. |
| 146 | 146 | ||
| 147 | ```rust | 147 | ```rust |
| 148 | fn getHelp(_: void, param: clap.Param(u8)) error{}![]const u8 { | 148 | fn getHelp(_: void, param: clap.Param(u8)) error{}![]const u8 { |