eladrich / pyrallis

Pyrallis is a framework for structured configuration parsing from both cmd and files. Simply define your desired configuration structure as a dataclass and let pyrallis do the rest!
https://eladrich.github.io/pyrallis/
MIT License
201 stars 7 forks source link

Added omit_defaults and code simplifications #2

Closed eladrich closed 2 years ago

eladrich commented 2 years ago

Implemented the suggestion from issue #1 to add an omit_defaults option to the dump function

pyrallis.dump(cfg, omit_defaults=True)

Also simplified the wrapper classes in the process and improved the --help command to be more concise.