summaryrefslogtreecommitdiff
path: root/clap.zig
diff options
context:
space:
mode:
authorGravatar Asherah Connor2020-08-23 12:21:26 +1000
committerGravatar Komari Spaghetti2020-08-28 09:43:42 +0200
commitc2ae653f51ff03e255c7c9399f5794903239c483 (patch)
tree8d350603bc08208631c712eb9c917cb040059bc5 /clap.zig
parentadd build step id (diff)
downloadzig-clap-c2ae653f51ff03e255c7c9399f5794903239c483.tar.gz
zig-clap-c2ae653f51ff03e255c7c9399f5794903239c483.tar.xz
zig-clap-c2ae653f51ff03e255c7c9399f5794903239c483.zip
parse multiple options
Diffstat (limited to 'clap.zig')
-rw-r--r--clap.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/clap.zig b/clap.zig
index 204494b..aedab32 100644
--- a/clap.zig
+++ b/clap.zig
@@ -247,6 +247,10 @@ pub fn Args(comptime Id: type, comptime params: []const Param(Id)) type {
247 return a.clap.option(name); 247 return a.clap.option(name);
248 } 248 }
249 249
250 pub fn allOptions(a: @This(), comptime name: []const u8) [][]const u8 {
251 return a.clap.allOptions(name);
252 }
253
250 pub fn positionals(a: @This()) []const []const u8 { 254 pub fn positionals(a: @This()) []const []const u8 {
251 return a.clap.positionals(); 255 return a.clap.positionals();
252 } 256 }