Skip to content

Commit 568ceb8

Browse files
committed
Make columns param of runMain default to null
1 parent 119a7e4 commit 568ceb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/SystemExitException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ open class SystemExitException(message: String, val returnCode: Int) : Exception
6767
* @param f the main body. If a `SystemExitException` is caught its
6868
* `printAndExit` method will be invoked.
6969
*/
70-
fun <T, R> T.runMain(progName: String? = null, columns: Int?, f: T.() -> R): R {
70+
fun <T, R> T.runMain(progName: String? = null, columns: Int? = null, f: T.() -> R): R {
7171
try {
7272
return f()
7373
} catch (e: SystemExitException) {

0 commit comments

Comments
 (0)