Skip to content
Snippets Groups Projects
Commit dafa42ad authored by Nicolas Voirol's avatar Nicolas Voirol
Browse files

Certain MainHelpers fields should be lazy

parent 7e3ac13c
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ trait MainHelpers { ...@@ -12,7 +12,7 @@ trait MainHelpers {
solvers.DebugSectionSolver solvers.DebugSectionSolver
) )
protected final val debugSections = getDebugSections protected final lazy val debugSections = getDebugSections
final object optDebug extends OptionDef[Set[DebugSection]] { final object optDebug extends OptionDef[Set[DebugSection]] {
import OptionParsers._ import OptionParsers._
...@@ -58,7 +58,7 @@ trait MainHelpers { ...@@ -58,7 +58,7 @@ trait MainHelpers {
evaluators.optIgnoreContracts -> "Don't fail on invalid contracts during evaluation" evaluators.optIgnoreContracts -> "Don't fail on invalid contracts during evaluation"
) )
protected final val options = getOptions protected final lazy val options = getOptions
private def helpString(opt: OptionDef[_]): String = { private def helpString(opt: OptionDef[_]): String = {
f"${opt.usageDesc}%-28s" + options(opt).replaceAll("\n", "\n" + " " * 28) f"${opt.usageDesc}%-28s" + options(opt).replaceAll("\n", "\n" + " " * 28)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment