File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 */
10501052open 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
You can’t perform that action at this time.
0 commit comments