@@ -8,10 +8,9 @@ such as help messages and bash completion.[^1]
88 3.3.0), you will need to write a tiny boilerplate snippet as shown in the
99 introductory example.
1010
11- Note: the generated code uses a lower-level interface, which can also be
12- directly used for more flexibility. It is suggested that you [ read the
13- tutorial] ( ./ll/index.html ) in any case, for further understanding of how
14- argument parsing works at a lower level.
11+ The generated code uses a [ lower-level interface] ( ./ll/index.html ) , which you
12+ can also use directly if you would like more flexibility than what the
13+ auto-generated CLI provides.
1514
1615### Parameter Mapping
1716
@@ -46,10 +45,6 @@ for many types out-of-the-box. Some examples:
4645- various ` java.time ` date types
4746- ` key=value ` pairs of other supported types
4847
49- The mechanism in which command line arguments are converted to Scala types is
50- highly customizable and [ new types can easily be
51- added] ( ./ll/cookbook.md#adding-support-for-a-new-type-of-parameter ) .
52-
5348E.g.
5449
5550``` scala
6055{{#include ../../examples/annotation-types/src/shell.txt}}
6156```
6257
58+ The mechanism by which command line arguments are converted to Scala types is
59+ highly customizable and [ new types can easily be
60+ added] ( ./ll/cookbook.md#adding-support-for-a-new-type-of-parameter ) .
61+
6362### Parameter Overrides
6463
6564The generated command line parameters can further be customized by annotating
@@ -129,9 +128,9 @@ of parameters. See the `git` or `docker` tools for some such examples.
129128
130129In scala-argparse, nested commands use the same mechanism as single, top-level
131130commands, with one small twist: instead of annotating a * method* with
132- ` command() ` , you annotate a * class definition* (or a function that returns an
133- instance of an annotated class). This can be done recursively, and classes can
134- declare parameters which can be referenced by child commands.
131+ ` command() ` , you annotate a * class definition* (or a method that returns an
132+ instance of a class containing other commands ). This can be done recursively,
133+ and classes can declare parameters which can be referenced by child commands.
135134
136135E.g.
137136
@@ -164,7 +163,7 @@ Any program that uses scala-argparse automatically gets:
164163
165164- Now that you know the high-level API, check out the [ lower-level
166165 API] ( ./ll/index.html ) , which underpins the former and can be helpful for
167- understanding cusomizations .
166+ understanding customizations .
168167
169168- Read the API docs. Start with the [ ` argparse.default `
170169 bundle] ( javadoc/api/argparse/default$.html ) .
0 commit comments