From 61628667817fddded51afa6feeaaacc5852374e1 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Thu, 6 Sep 2018 17:43:43 +0200 Subject: Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f541867..4879b4e 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # zig-clap -An easy to use command line argument parser library for Zig. +A simple and easy to use command line argument parser library for Zig. +It's ment as a thin layer of abstraction over parsing arguments. Users +can then build on top to parse arguments into their own data structures. ## Features -See [example](example.zig). - -* Assosiate arguements with fields of a struct. - * When an arguement is found by the clap, the field is set to a parsed version of the value. - * `zig-clap` provides some default parses, but you can make your own as well. +See [example](https://github.com/Hejsil/zig-clap/blob/38a51948069f405864ab327826b5975a6d0c93a8/test.zig#L200-L247). * Short arguments `-a` * Chaining `-abc` where `a` and `b` does not take values. * Long arguments `--long` +* Bare arguments `bare` * Supports both passing values using spacing and `=` (`-a 100`, `-a=100`) * Short args also support passing values with no spacing or `=` (`-a100`) * This all works with chaining (`-ba 100`, `-ba=100`, `-ba100`) + -- cgit v1.2.3 From 02619208d9d087503f94f40bd22ae0449f9f1750 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Thu, 6 Sep 2018 17:45:06 +0200 Subject: Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4879b4e..f4c3766 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # zig-clap A simple and easy to use command line argument parser library for Zig. -It's ment as a thin layer of abstraction over parsing arguments. Users -can then build on top to parse arguments into their own data structures. +It's ment as a thin layer of abstraction over parsing arguments which allows +for further abstraction on top, such as filling in a `HashMap`. ## Features -- cgit v1.2.3 From f89ce80b617e1291a611522f2c96165c2f23fb57 Mon Sep 17 00:00:00 2001 From: Jimmi Holst Christensen Date: Thu, 6 Sep 2018 17:50:24 +0200 Subject: Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 740ce32..2253826 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,3 +9,4 @@ git: script: - zig-linux-*/zig version - zig-linux-*/zig test test.zig + -- cgit v1.2.3