Skip to content

Commit 6519b75

Browse files
committed
Add some TODO comments
1 parent 37355c4 commit 6519b75

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/kotlin/ArgParser.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ class ArgParser(args: Array<out String>,
214214
* @param handler a function that computes the value of this option from an [OptionInvocation]
215215
*/
216216
fun <T> option(
217+
// TODO: add optionalArg: Boolean
217218
vararg names: String,
218219
errorName: String,
219220
help: String,
@@ -242,6 +243,7 @@ class ArgParser(args: Array<out String>,
242243
* @param handler a function that computes the value of this option from an [OptionInvocation]
243244
*/
244245
fun <T> option(
246+
// TODO: add optionalArg: Boolean
245247
errorName: String,
246248
help: String,
247249
argNames: List<String> = emptyList(),
@@ -1049,3 +1051,7 @@ open class UnexpectedOptionArgumentException(val optName: String) :
10491051
*/
10501052
open class UnexpectedPositionalArgumentException(val valueName: String?) :
10511053
SystemExitException("unexpected argument${if (valueName == null) "" else " after $valueName"}", 2)
1054+
1055+
// TODO: remove addValidator completely?
1056+
// TODO: rename errorName to valueName?
1057+
// TODO: add validation to option names, option arg names, and positional arg names

0 commit comments

Comments
 (0)