Skip to content

Commit

Permalink
Fixes errors on each execution
Browse files Browse the repository at this point in the history
  • Loading branch information
asm0dey committed Jul 1, 2022
1 parent 9365e2f commit 03d67a2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jetbrains.kotlinx.ki.shell

import kotlinx.cli.CommandLineInterface
import kotlinx.cli.HelpPrintedException
import kotlinx.cli.flagArgument
import kotlinx.cli.parse
import org.jetbrains.kotlinx.ki.shell.configuration.CachedInstance
Expand All @@ -19,7 +20,11 @@ object KotlinShell {

@JvmStatic
fun main(args: Array<String>) {
cli.parse(args)
try {
cli.parse(args)
}catch (e:HelpPrintedException){
return
}

if (version) {
printVersion()
Expand Down

0 comments on commit 03d67a2

Please sign in to comment.