diff options
author | Greg Ward <gward@python.net> | 2000-06-07 03:00:06 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-06-07 03:00:06 (GMT) |
commit | 9d17a7ad6df0a940f8f10cf7a113aaffc4222309 (patch) | |
tree | 825174ee769bf6ab27252f9a2965ed2b81680fb5 /Lib/distutils/command/build_clib.py | |
parent | 1169687692e5e897033421fe6a73a3c32675a7d7 (diff) | |
download | cpython-9d17a7ad6df0a940f8f10cf7a113aaffc4222309.zip cpython-9d17a7ad6df0a940f8f10cf7a113aaffc4222309.tar.gz cpython-9d17a7ad6df0a940f8f10cf7a113aaffc4222309.tar.bz2 |
Patch from Rene Liebscher: this adds "--help-foo" options to list the
values that "--foo" can take for various commands: eg. what formats for
"sdist" and "bdist", what compilers for "build_ext" and "build_clib".
I have *not* reviewed this patch; I'm checking it in as-is because it also
fixes a paper-bag-over-head bug in bdist.py, and because I won't have
time to review it properly for several days: so someone else can
test it for me, instead!
Diffstat (limited to 'Lib/distutils/command/build_clib.py')
-rw-r--r-- | Lib/distutils/command/build_clib.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_clib.py b/Lib/distutils/command/build_clib.py index dba9a40..72df372 100644 --- a/Lib/distutils/command/build_clib.py +++ b/Lib/distutils/command/build_clib.py @@ -23,7 +23,7 @@ import os, string from types import * from distutils.core import Command from distutils.errors import * -from distutils.ccompiler import new_compiler +from distutils.ccompiler import new_compiler,show_compilers class build_clib (Command): @@ -42,6 +42,10 @@ class build_clib (Command): ('compiler=', 'c', "specify the compiler type"), ] + help_options = [ + ('help-compiler', None, + "lists available compilers",show_compilers), + ] def initialize_options (self): self.build_clib = None |