Commit ea6a2e2
committed
Make option method public
This includes many changes, some of which are not backwards compatible.
- option now takes a list of argNames, which is primarily used for determining
how many arguments an option takes (now a fixed number), but is also used in
help and error messages.
- added a bunch of tests, and fixed bugs that were discovered with their
creation, particularly around positionals and default/addValidator
Also moved each test to its own class. This seems to play better with
IntelliJ:
- faster editing and refactoring
- can run individual tests1 parent 5311ab9 commit ea6a2e2
File tree
3 files changed
+1081
-784
lines changed- src
- main/kotlin
- test/kotlin
3 files changed
+1081
-784
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
12 | 24 | | |
13 | 25 | | |
14 | 26 | | |
| |||
0 commit comments