diff options
| author | 2020-08-23 12:21:26 +1000 | |
|---|---|---|
| committer | 2020-09-06 17:31:27 +0200 | |
| commit | 1180b1c2b52ae4f3f9aaf7e8308b3a46ee828eed (patch) | |
| tree | 87e41829de3a62a93932877cfe46a72ea72b6120 /clap.zig | |
| parent | Fix expected type error on 32 bit systems (diff) | |
| download | zig-clap-1180b1c2b52ae4f3f9aaf7e8308b3a46ee828eed.tar.gz zig-clap-1180b1c2b52ae4f3f9aaf7e8308b3a46ee828eed.tar.xz zig-clap-1180b1c2b52ae4f3f9aaf7e8308b3a46ee828eed.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 | } |