exit

expect fun exit(exitCode: Int = 0): Nothing(source)

Exits the application with the specified exit code.

Used by auto-registered help and version options to exit gracefully after displaying their output.

Parameters

exitCode

The exit code to use (typically 0 for success)

actual fun exit(exitCode: Int): Nothing
actual fun exit(exitCode: Int): Nothing