summaryrefslogtreecommitdiff
path: root/example/streaming-clap.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--example/streaming-clap.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/streaming-clap.zig b/example/streaming-clap.zig
index 0dc2bf7..013c1d4 100644
--- a/example/streaming-clap.zig
+++ b/example/streaming-clap.zig
@@ -17,12 +17,12 @@ pub fn main() !void {
17 // * A "Names" struct, which determins what names the parameter will have on the 17 // * A "Names" struct, which determins what names the parameter will have on the
18 // commandline. Names.prefix inits a "Names" struct that has the "short" name 18 // commandline. Names.prefix inits a "Names" struct that has the "short" name
19 // set to the first letter, and the "long" name set to the full name. 19 // set to the first letter, and the "long" name set to the full name.
20 clap.Param(u8).init('h', false, clap.Names.prefix("help")), 20 clap.Param(u8).flag('h', clap.Names.prefix("help")),
21 clap.Param(u8).init('n', true, clap.Names.prefix("number")), 21 clap.Param(u8).option('n', clap.Names.prefix("number")),
22 22
23 // Names.positional returns a "Names" struct where neither the "short" or "long" 23 // Names.positional returns a "Names" struct where neither the "short" or "long"
24 // name is set. 24 // name is set.
25 clap.Param(u8).init('f', true, clap.Names.positional()), 25 clap.Param(u8).positional('f'),
26 }; 26 };
27 27
28 // We then initialize an argument iterator. We will use the OsIterator as it nicely 28 // We then initialize an argument iterator. We will use the OsIterator as it nicely