Skip to content

Properties provided from CLI are not bound to configuration classes #43

@kutis96

Description

@kutis96

Expected behavior:

  • Supplied -P "key=value" parameters are bound to registered configuration classes, overriding their defaults and/or file-based configuration.

Current behavior:

  • Supplied -P "key=value" parameters are not bound to registered configuration classes, despite being eventually known to the ConfigContext.
  • This is because the config class binding is done before the CLI parameters are processed, and it all is a bit of a mess.
  • That is, the in.spcct.spacedoc.exec.Setup#registerAll() gets called in order to register the modules to be loaded, but it also ends up setting up all the other things, which invokes config loading. This is done before the CLI parameters are loaded, because weirdness happens. See Clean up CLI option processing #36.

Solution:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions