summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ryoga-exe2025-09-22 05:13:27 +0900
committerGravatar Komari Spaghetti2025-09-22 13:44:57 +0200
commit17011f26c921d3b783facc4b533479d0cd5a238c (patch)
tree2dcb30f6f63ad3b6fe8a3c809932ca1d33a9dc56
parentRelease 0.11.0 (diff)
downloadzig-clap-17011f26c921d3b783facc4b533479d0cd5a238c.tar.gz
zig-clap-17011f26c921d3b783facc4b533479d0cd5a238c.tar.xz
zig-clap-17011f26c921d3b783facc4b533479d0cd5a238c.zip
fix: use `usageToFile` in usage example
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9675d30..3ef6527 100644
--- a/README.md
+++ b/README.md
@@ -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, &params); 410 return clap.usageToFile(.stdout(), clap.Help, &params);
411} 411}
412 412
413const clap = @import("clap"); 413const clap = @import("clap");