]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Marching towards full support of config files: thoroughly overhauled the
authorGreg Ward <gward@python.net>
Tue, 23 May 2000 01:42:17 +0000 (01:42 +0000)
committerGreg Ward <gward@python.net>
Tue, 23 May 2000 01:42:17 +0000 (01:42 +0000)
commitd5d8a9982b77ef54fcacf8ff7bfa449a2eab35db
tree1035bd9e4b7ce6741ad90983175acc07a4b5451a
parent32000e84646e1c8a1b0307551b54223cee489570
Marching towards full support of config files: thoroughly overhauled the
command-line parsing code, splitting it up into several methods (new
methods: '_parse_command_opts()', '_show_help()') and making it put options
into the 'command_options' dictionary rather than instantiating command
objects and putting them there.

Lots of other little changes:
  * merged 'find_command_class()' and 'create_command_obj()' and
    called the result 'get_command_class()'
  * renamed 'find_command_obj()' to 'get_command_obj()', and added
    command object creation and maintenance of the command object cache to
    its responsibilities (taken over from 'create_command_obj()')
  * parse config files one-at-a-time, so we can keep track of the
    filename for later error reporting
  * tweaked some help messages
  * fixed up many obsolete comments and docstrings
Lib/distutils/dist.py