Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command line option to send custom values to config.py #704

Open
dogbert911 opened this issue Feb 2, 2022 · 0 comments
Open

Add command line option to send custom values to config.py #704

dogbert911 opened this issue Feb 2, 2022 · 0 comments
Assignees
Labels

Comments

@dogbert911
Copy link
Collaborator

Describe the desirable behavior of the program
Use universum cli arguments in config file.
Ex:

Start Universum with next command line:

python -m universum --opt foo=bar --opt aaa=bbb

Get access to --opt values (or for all universum args) in config.py:

from universum.configuration_support import Options

print(Options.foo)
print(Options.aaa)

Describe alternatives you've considered

Use environment variables

Additional context
None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants