[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Add -h and --help options to bindings/swig/python/setup.py

From: Jon Middleton <jjm_at_ixtab.org.uk>
Date: 2002-10-24 23:58:54 CEST

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.