https://github.com/benhoff/argenvconfig
https://github.com/benhoff/argenvconfig
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/benhoff/argenvconfig
- Owner: benhoff
- License: gpl-3.0
- Created: 2016-04-28T23:57:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-29T00:00:02.000Z (about 10 years ago)
- Last Synced: 2025-02-13T06:43:09.581Z (over 1 year ago)
- Language: Python
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# TODO
This implementation is still incomplete. Here's a partial TODO list:
* (easy) Interaction with [parser defaults][1]
* (easy) If type conversion doesn't work, check against how `argparse` handles [error messages][2]
## Conform to documented behavior
* (easy) Write a function that figures out `dest` from `args` in `add_argument`, instead of relying on the `Action` object
## Less Easy Stuff…
I haven't tried any of this yet. It's unlikely—but still possible!—that it could just work…
* (hard?) [Mutual Exclusion][3]
* (hard?) [Argument Groups][4] (If implemented, these groups should get a `section` in the config file.)
* (hard?) [Sub Commands][5] (Sub-commands should also get a `section` in the config file.)
[1]: http://docs.python.org/dev/library/argparse.html#parser-defaults
[2]: http://docs.python.org/dev/library/argparse.html#exiting-methods
[3]: http://docs.python.org/dev/library/argparse.html#mutual-exclusion
[4]: http://docs.python.org/dev/library/argparse.html#argument-groups
[5]: http://docs.python.org/dev/library/argparse.html#sub-commands