improve parsing and flag Options
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package com.infendro.cli.exception.build
|
||||
|
||||
class MissingOptionNameException : Exception()
|
||||
@@ -1,3 +0,0 @@
|
||||
package com.infendro.cli.exception.build
|
||||
|
||||
class NoOptionNameException : Exception()
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.infendro.cli.exception.run
|
||||
|
||||
class MissingOptionValueException(
|
||||
val option: String,
|
||||
) : CliException() {
|
||||
override val message: String
|
||||
get() = """no value provided for option "$option""""
|
||||
}
|
||||
Reference in New Issue
Block a user