Skip to content

Commit

Permalink
fix: use clikt parse method over main for avoid System.exit call and …
Browse files Browse the repository at this point in the history
…throw an exception instead
  • Loading branch information
nroulon committed Jun 13, 2023
1 parent ed0ad6e commit cea6c46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ open class BaseCliTest {
}

private fun runAppWithSubCommand(subCommand: DatamaintainCliCommand, argv: List<String>) {
App().subcommands(subCommand).main(argv)
App().subcommands(subCommand).parse(argv)
}

protected fun runAppWithUpdateDb(baseArguments: List<String>, updateDbArguments: List<String> = listOf()) {
Expand Down

0 comments on commit cea6c46

Please sign in to comment.