Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
ChryseApp: check CHRYSE_APP_NOEXIT before overriding exitHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed May 26, 2024
1 parent 18bd24c commit bb737a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/ee/hrzn/chryse/ChryseApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ abstract class ChryseApp {

// TODO (Scallop): Show parent version string on subcommand help.
object Conf extends ScallopConf(args) {
exitHandler = _ => terminating = true
if (System.getenv().getOrDefault("CHRYSE_APP_NOEXIT", "") == "1")
exitHandler = _ => terminating = true
printedName = name

version(versionBanner)
Expand Down

0 comments on commit bb737a1

Please sign in to comment.