diff options
| author | 2025-09-22 05:13:27 +0900 | |
|---|---|---|
| committer | 2025-09-22 13:44:57 +0200 | |
| commit | 17011f26c921d3b783facc4b533479d0cd5a238c (patch) | |
| tree | 2dcb30f6f63ad3b6fe8a3c809932ca1d33a9dc56 /README.md | |
| parent | Release 0.11.0 (diff) | |
| download | zig-clap-17011f26c921d3b783facc4b533479d0cd5a238c.tar.gz zig-clap-17011f26c921d3b783facc4b533479d0cd5a238c.tar.xz zig-clap-17011f26c921d3b783facc4b533479d0cd5a238c.zip | |
fix: use `usageToFile` in usage example
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -407,7 +407,7 @@ pub fn main() !void { | |||
| 407 | // `clap.usageToFile` is a function that can print a simple usage string. It can print any | 407 | // `clap.usageToFile` is a function that can print a simple usage string. It can print any |
| 408 | // `Param` where `Id` has a `value` method (`Param(Help)` is one such parameter). | 408 | // `Param` where `Id` has a `value` method (`Param(Help)` is one such parameter). |
| 409 | if (res.args.help != 0) | 409 | if (res.args.help != 0) |
| 410 | return clap.usage(.stdout(), clap.Help, ¶ms); | 410 | return clap.usageToFile(.stdout(), clap.Help, ¶ms); |
| 411 | } | 411 | } |
| 412 | 412 | ||
| 413 | const clap = @import("clap"); | 413 | const clap = @import("clap"); |