Hi,
This patch adds an --help (and -h) option that calls _do_usage() to
bindings/swig/python/setup.py as I found it exited with an error
when running ./setup --help.
Jon.
Index: subversion/bindings/swig/python/setup.py
===================================================================
--- subversion/bindings/swig/python/setup.py
+++ subversion/bindings/swig/python/setup.py 2002-10-24 22:51:16.000000000 +0100
@@ -54,8 +54,8 @@
# all the options that we allow (which is FAR less than the set of
# distutils options). If we find that people actually care, we can
# revisit this.
-options, leftovers = getopt.getopt(sys.argv[1:], "I:L:S:s:",
- ["prefix=", "install-dir="])
+options, leftovers = getopt.getopt(sys.argv[1:], "I:L:S:s:h",
+ ["prefix=", "install-dir=", "help"])
for option in options:
if option[0] == '-I':
include_dirs.append(option[1])
@@ -65,6 +65,11 @@
source_dir = option[1]
if option[0] == '-s':
swig_location = option[1]
+ if option[0] == '-h':
+ _do_usage()
+
+ if option[0] == '--help':
+ _do_usage()
# All long options just get passed through
if option[0][:2] == '--':
- application/pgp-signature attachment: stored
Received on Thu Oct 24 23:59:46 2002