Update to latest version of zig
This commit is contained in:
parent
6aa5180eea
commit
9c23bcb5ae
4
clap.zig
4
clap.zig
|
@ -913,9 +913,9 @@ fn Arguments(
|
|||
},
|
||||
};
|
||||
|
||||
const name = longest.name[0..longest.name.len].*;
|
||||
const name = longest.name[0..longest.name.len] ++ ""; // Adds null terminator
|
||||
fields[i] = .{
|
||||
.name = &name,
|
||||
.name = name,
|
||||
.type = @TypeOf(default_value),
|
||||
.default_value = @ptrCast(&default_value),
|
||||
.is_comptime = false,
|
||||
|
|
|
@ -23,6 +23,12 @@ in the release notes.
|
|||
* Print help message from parameter specification.
|
||||
* Parse help message to parameter specification.
|
||||
|
||||
## API Reference
|
||||
|
||||
Automatically generated API Reference for the project
|
||||
can be found at https://Hejsil.github.io/zig-clap.
|
||||
Note that Zig autodoc is in beta; the website may be broken or incomplete.
|
||||
|
||||
## Examples
|
||||
|
||||
### `clap.parse`
|
||||
|
|
Loading…
Reference in New Issue
Block a user