@@ -11,7 +11,7 @@ non-options do not stop option parsing, so options and non-options can be in any
11
11
### What sets it apart
12
12
13
13
* No reflection, purely static analysis.
14
- * No runtime dependency. The generated ` *Parser .java ` is self-contained.
14
+ * No runtime dependency. The generated ` *_Parser .java ` is self-contained.
15
15
* Convenient, flexible property binding via constructor.
16
16
* Deliberately simple: ` String ` and ` boolean ` only.
17
17
No <em >converters</em >, no <em >default values</em >, no <em >required</em >.
@@ -82,24 +82,24 @@ final class Curl {
82
82
````
83
83
84
84
* ` @CommandLineArguments ` triggers the code generation. The generated code requires Java 8.
85
- * Class ` CurlParser ` will be generated in the same package.
85
+ * Class ` Curl_Parser ` will be generated in the same package.
86
86
87
- ` CurlParser ` has only one method, but there's also an ` enum ` to consider.
87
+ ` Curl_Parser ` has only one method, but there's also an ` enum ` to consider.
88
88
89
- * The generated enum ` CurlParser .Option` has constants ` HEADERS ` , ` VERBOSE ` , ` METHOD ` and ` URLS ` .
89
+ * The generated enum ` Curl_Parser .Option` has constants ` HEADERS ` , ` VERBOSE ` , ` METHOD ` and ` URLS ` .
90
90
These correspond to the constructor arguments, and have methods to <b >generate usage text</b >.
91
- * The generated static method ` CurlParser .parse(String[] args)`
91
+ * The generated static method ` Curl_Parser .parse(String[] args)`
92
92
takes the ` args ` argument from ` public static void main(String[] args) ` .
93
- * ` parse ` returns another generated class, ` CurlParser .Binder` .
93
+ * ` parse ` returns another generated class, ` Curl_Parser .Binder` .
94
94
* ` parse ` will throw ` IllegalArgumentException ` if it cannot make sense of the input.
95
95
96
- The generated class ` CurlParser .Binder` has two methods:
96
+ The generated class ` Curl_Parser .Binder` has two methods:
97
97
98
98
* ` binder.bind() ` invokes the constructor. It returns a ` Curl ` instance.
99
99
* ` binder.otherTokens() ` returns a ` List<String> ` . Unless ` @OtherTokens ` are already used in your constructor,
100
100
should be inspected before invoking ` bind() ` , to inform the user about a possible input error.
101
101
102
- Let's see how ` CurlParser .parse(String[] args)` handles some good old input.
102
+ Let's see how ` Curl_Parser .parse(String[] args)` handles some good old input.
103
103
For example, if ` args ` is
104
104
105
105
* ` {--method, --method} ` , then ` method ` will be the string ` --method ` .
@@ -149,7 +149,7 @@ If you're not familiar with `rm`'s `--` option, try `echo >>-f` and deleting the
149
149
<dependency >
150
150
<groupId >com.github.h908714124</groupId >
151
151
<artifactId >jbock</artifactId >
152
- <version >1.5 </version >
152
+ <version >1.6 </version >
153
153
<scope >provided</scope >
154
154
</dependency >
155
155
````
0 commit comments