Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use ChainMap to rewrite the cmd options <- configuration file <- default configuration chain #1672

Open
@bearomorphism

Description

Description

As title. A ChainMap keeps more information and is easier to debug.

At some point, we will need a better configuration system to fix issues like #996 mentioned.

Before executing a command, we need to merge the config from configuration file and the default configuration in defaults.py. In some scenarios, CLI arguments also have to be taken into account.

Right now, if I make a plugin, I can create custom settings, but they are not typed. Would this allow plugin to declare their own settings?
example

Possible Solution

No response

Additional context

https://realpython.com/python-chainmap/#prioritizing-command-line-apps-settings

Related issues

No response

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /