Skip to content

Commit 544e09e

Browse files
authored
report non-zero exit code in case of non-parsable input (#66)
1 parent 62b5366 commit 544e09e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/jvmMain/src/Utils.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
package kotlinx.cli
77

88
internal actual fun exitProcess(status: Int): Nothing {
9-
kotlin.system.exitProcess(0)
9+
kotlin.system.exitProcess(status)
1010
}
1111

core/nativeMain/src/Utils.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
package kotlinx.cli
77

88
internal actual fun exitProcess(status: Int): Nothing {
9-
kotlin.system.exitProcess(0)
9+
kotlin.system.exitProcess(status)
1010
}

0 commit comments

Comments
 (0)