diff --git a/README.md b/README.md index 907225c..dcea02b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A simple CLI library for Carp. ```clojure -(load "https://veitheller.de/git/carpentry/cli@0.0.2") +(load "https://veitheller.de/git/carpentry/cli@0.0.5") (defn main [] (let [p (=> (CLI.new @"My super cool tool!") @@ -18,7 +18,7 @@ A simple CLI library for Carp. ## Installation ```clojure -(load "https://veitheller.de/git/carpentry/cli@0.0.2") +(load "https://veitheller.de/git/carpentry/cli@0.0.5") ``` ## Usage @@ -43,8 +43,8 @@ manually. Once you’re done building your flag structure, you can run `CLI.parse`. It will not abort the program on error, instead it will tell you what went wrong in a `Result.Error`. If it succeeds, the `Result.Success` contains a `Map` from -the long flag name to the value (the values are `Maybe`s, since they might be -optional arguments. +the long flag name to the value. The values are not in the map if they are +unset.
diff --git a/cli.carp b/cli.carp index ea33926..69028d3 100644 --- a/cli.carp +++ b/cli.carp @@ -6,7 +6,7 @@ (doc CLI "is a simple CLI library for Carp. ```clojure -(load \"https://veitheller.de/git/carpentry/cli@0.0.2\") +(load \"https://veitheller.de/git/carpentry/cli@0.0.5\") (defn main [] (let [p (=> (CLI.new @\"My super cool tool!\") @@ -21,7 +21,7 @@ ## Installation ```clojure -(load \"https://veitheller.de/git/carpentry/cli@0.0.2\") +(load \"https://veitheller.de/git/carpentry/cli@0.0.5\") ``` ## Usage diff --git a/docs/CLI.html b/docs/CLI.html index c9d4565..bb1feef 100644 --- a/docs/CLI.html +++ b/docs/CLI.html @@ -30,7 +30,7 @@

is a simple CLI library for Carp.

-
(load "https://veitheller.de/git/carpentry/cli@0.0.2")
+
(load "https://veitheller.de/git/carpentry/cli@0.0.5")
 
 (defn main []
   (let [p (=> (CLI.new @"My super cool tool!")
@@ -42,7 +42,7 @@
       (Result.Error msg) (do (IO.errorln &msg) (CLI.usage &p)))))
 

Installation

-
(load "https://veitheller.de/git/carpentry/cli@0.0.2")
+
(load "https://veitheller.de/git/carpentry/cli@0.0.5")
 

Usage

CLI should be built using combinators, as in the example above. It has, as of @@ -65,25 +65,6 @@ the long flag name to the value. The values are not in the map if they are unset.

-
- -

- (defdynamic CLI.*gensym-counter* 1001) -

-
-
- dynamic -
-

- Dynamic -

- - - -

- -

-