We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4893c8 commit b08781fCopy full SHA for b08781f
clikt/src/main/kotlin/com/github/ajalt/clikt/core/exceptions.kt
@@ -4,8 +4,12 @@ import com.github.ajalt.clikt.parameters.arguments.Argument
4
import com.github.ajalt.clikt.parameters.arguments.convert
5
import com.github.ajalt.clikt.parameters.options.Option
6
7
-/** An internal error that signals Clikt to abort. */
8
-class Abort : RuntimeException()
+/**
+ * An internal error that signals Clikt to abort.
9
+ *
10
+ * @property error If true, print "Aborted" and exit with an error code. Otherwise, exit with no error code.
11
+ */
12
+class Abort(val error: Boolean = true) : RuntimeException()
13
14
/**
15
* An exception during command line processing that should be shown to the user.
0 commit comments