diff options
| author | 2020-08-23 12:21:26 +1000 | |
|---|---|---|
| committer | 2020-08-28 09:43:42 +0200 | |
| commit | c2ae653f51ff03e255c7c9399f5794903239c483 (patch) | |
| tree | 8d350603bc08208631c712eb9c917cb040059bc5 /clap.zig | |
| parent | add build step id (diff) | |
| download | zig-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.zig | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -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 | } |