diff options
| author | 2018-09-17 14:24:41 +0200 | |
|---|---|---|
| committer | 2018-09-17 14:24:41 +0200 | |
| commit | 9c8af684933070270a0abfba673d5ba5cbc5f983 (patch) | |
| tree | 2af3c2340c7e7c15f4b1a8d05c15bfc20853d226 /clap.zig | |
| parent | Fix failed compile on windows (diff) | |
| download | zig-clap-9c8af684933070270a0abfba673d5ba5cbc5f983.tar.gz zig-clap-9c8af684933070270a0abfba673d5ba5cbc5f983.tar.xz zig-clap-9c8af684933070270a0abfba673d5ba5cbc5f983.zip | |
Renamed Clap to StreamingClap
Diffstat (limited to 'clap.zig')
| -rw-r--r-- | clap.zig | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -116,7 +116,7 @@ pub fn Param(comptime Id: type) type { | |||
| 116 | }; | 116 | }; |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | /// The result returned from ::Clap.next | 119 | /// The result returned from ::StreamingClap.next |
| 120 | pub fn Arg(comptime Id: type) type { | 120 | pub fn Arg(comptime Id: type) type { |
| 121 | return struct { | 121 | return struct { |
| 122 | const Self = @This(); | 122 | const Self = @This(); |
| @@ -206,9 +206,9 @@ pub const OsArgIterator = struct { | |||
| 206 | }; | 206 | }; |
| 207 | 207 | ||
| 208 | /// A command line argument parser which, given an ::ArgIterator, will parse arguments according | 208 | /// A command line argument parser which, given an ::ArgIterator, will parse arguments according |
| 209 | /// to the ::params. ::Clap parses in an iterating manner, so you have to use a loop together with | 209 | /// to the ::params. ::StreamingClap parses in an iterating manner, so you have to use a loop together with |
| 210 | /// ::Clap.next to parse all the arguments of your program. | 210 | /// ::StreamingClap.next to parse all the arguments of your program. |
| 211 | pub fn Clap(comptime Id: type, comptime ArgError: type) type { | 211 | pub fn StreamingClap(comptime Id: type, comptime ArgError: type) type { |
| 212 | return struct { | 212 | return struct { |
| 213 | const Self = @This(); | 213 | const Self = @This(); |
| 214 | 214 | ||
| @@ -373,4 +373,4 @@ pub fn Clap(comptime Id: type, comptime ArgError: type) type { | |||
| 373 | return error.InvalidArgument; | 373 | return error.InvalidArgument; |
| 374 | } | 374 | } |
| 375 | }; | 375 | }; |
| 376 | } | 376 | } \ No newline at end of file |