Skip to content

Commit

Permalink
Lazy config load in WavesDexCli
Browse files Browse the repository at this point in the history
  • Loading branch information
vsuharnikov committed Jun 18, 2021
1 parent 1403a4a commit 1e24cc9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,8 @@ object WavesDexCli extends ScoptImplicits {

// noinspection ScalaStyle
OParser.parse(parser, rawArgs, Args()).foreach { args =>
val settings = loadMatcherSettingsFromPath(args.configPath)
// We need lazy here, because createDocumentation don't require a config, thus we're trying to load a default and invalid config
lazy val settings = loadMatcherSettingsFromPath(args.configPath)
args.command match {
case None => println(OParser.usage(parser, RenderingMode.TwoColumns))
case Some(command) =>
Expand Down

0 comments on commit 1e24cc9

Please sign in to comment.