@@ -31,7 +31,7 @@ exe.root_module.addImport("clap", clap.module("clap"));
3131## Features
3232
3333- Short arguments ` -a `
34- - Chaining ` -abc ` where ` a ` and ` b ` does not take values.
34+ - Chaining ` -abc ` where ` a ` and ` b ` do not take values.
3535 - Multiple specifications are tallied (e.g. ` -v -v ` ).
3636- Long arguments ` --long `
3737- Supports both passing values using spacing and ` = ` (` -a 100 ` , ` -a=100 ` )
@@ -70,7 +70,7 @@ pub fn main() !void {
7070
7171 // Initialize our diagnostics, which can be used for reporting useful errors.
7272 // This is optional. You can also pass `.{}` to `clap.parse` if you don't
73- // care about the extra information `Diagnostics ` provides.
73+ // care about the extra information `Diagnostic ` provides.
7474 var diag = clap.Diagnostic{};
7575 var res = clap.parse(clap.Help, ¶ms, clap.parsers.default, .{
7676 .diagnostic = &diag,
@@ -100,7 +100,7 @@ The result will contain an `args` field and a `positionals` field. `args` will h
100100each non-positional parameter of your program. The name of the field will be the longest name of the
101101parameter. ` positionals ` will be a tuple with one field for each positional parameter.
102102
103- The fields in ` args ` and ` postionals ` are typed. The type is based on the name of the value the
103+ The fields in ` args ` and ` positionals ` are typed. The type is based on the name of the value the
104104parameter takes. Since ` --number ` takes a ` usize ` the field ` res.args.number ` has the type ` usize ` .
105105
106106Note that this is only the case because ` clap.parsers.default ` has a field called ` usize ` which
@@ -342,7 +342,7 @@ runtime.
342342### ` help `
343343
344344` help ` prints a simple list of all parameters the program can take. It expects the ` Id ` to have a
345- ` description ` method and an ` value ` method so that it can provide that in the output. ` HelpOptions `
345+ ` description ` method and a ` value ` method so that it can provide that in the output. ` HelpOptions `
346346is passed to ` help ` to control how the help message is printed.
347347
348348``` zig
0 commit comments