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!
Why do you think that https://github.com/eriknyquist/duckargs is a good alternative to pyrallis