Update to latest version of zig

This commit is contained in:
Jimmi Holst Christensen 2024-01-09 08:21:40 +01:00
parent 6aa5180eea
commit 9c23bcb5ae
2 changed files with 8 additions and 2 deletions

View File

@ -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,

View File

@ -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`