From 9c8af684933070270a0abfba673d5ba5cbc5f983 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Mon, 17 Sep 2018 14:24:41 +0200 Subject: Renamed Clap to StreamingClap --- clap.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'clap.zig') diff --git a/clap.zig b/clap.zig index 6c21dba..06c860e 100644 --- a/clap.zig +++ b/clap.zig @@ -116,7 +116,7 @@ pub fn Param(comptime Id: type) type { }; } -/// The result returned from ::Clap.next +/// The result returned from ::StreamingClap.next pub fn Arg(comptime Id: type) type { return struct { const Self = @This(); @@ -206,9 +206,9 @@ pub const OsArgIterator = struct { }; /// A command line argument parser which, given an ::ArgIterator, will parse arguments according -/// to the ::params. ::Clap parses in an iterating manner, so you have to use a loop together with -/// ::Clap.next to parse all the arguments of your program. -pub fn Clap(comptime Id: type, comptime ArgError: type) type { +/// to the ::params. ::StreamingClap parses in an iterating manner, so you have to use a loop together with +/// ::StreamingClap.next to parse all the arguments of your program. +pub fn StreamingClap(comptime Id: type, comptime ArgError: type) type { return struct { const Self = @This(); @@ -373,4 +373,4 @@ pub fn Clap(comptime Id: type, comptime ArgError: type) type { return error.InvalidArgument; } }; -} +} \ No newline at end of file -- cgit v1.2.3