[Python-ideas] Fwd: argparse - add support for environment variables

Nick Coghlan ncoghlan at gmail.com
Thu Feb 21 01:44:44 CET 2013


On Thu, Feb 21, 2013 at 10:18 AM, Eli Bendersky <eliben at gmail.com> wrote:
> What about config files? Mix them into argparse too? Oh, and support for
> .ini/XML/YAML/JSON/sqlite configs, please!
>
> Sarcasm aside (don't take it personally ;-), my point is this: argparse is a
> nice, orthogonal library for dealing with command-line arguments. Let's keep
> it this way. Python gives you tools to *very easily* mix up different
> configuration paths, with really minimal effort.

Indeed - a layered architecture is the way to go here. argparse can be
a *component* of a comprehensive configuration system, but it
shouldn't try to *become* a comprehensive configuration system.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list