summaryrefslogtreecommitdiffstats
path: root/Demo/rpc/rpc.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-04-21 02:28:14 (GMT)
committerGreg Ward <gward@python.net>2000-04-21 02:28:14 (GMT)
commit82715e1f11ec1f4c7b13b07ca55f56850c4c3dab (patch)
tree1dd7b084123f9f870dbc7b00c9281cf84a7793d7 /Demo/rpc/rpc.py
parent283c745c572ea251f6f63e4c16905157ada66233 (diff)
downloadcpython-82715e1f11ec1f4c7b13b07ca55f56850c4c3dab.zip
cpython-82715e1f11ec1f4c7b13b07ca55f56850c4c3dab.tar.gz
cpython-82715e1f11ec1f4c7b13b07ca55f56850c4c3dab.tar.bz2
Patch, originally from Bastian Kleineidam and savagely mutilated by me,
to add the "display metadata" options: --name, --version, --author, and so forth. Main changes: * added 'display_options' class attribute to list all the "display only" options (--help-commands plus the metadata options) * added DistributionMetadata class as a place to put the actual metadata information from the setup script (not to be confused with the metadata display options); the logic dealing with metadata (eg. return self.name or "UNKNOWN") is now in this class * changed 'parse_command_line()' to use the new OO interface provided by fancy_getopt, mainly so we can get at the original order of options on the command line, so we can print multiple lines of distribution meta-data in the order specified by the user * added 'handle_display_options()' to handle display-only options Also fixed some crufty old comments/docstrings.
Diffstat (limited to 'Demo/rpc/rpc.py')
0 files changed, 0 insertions, 0 deletions