summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdistutils2/pysetup5
-rw-r--r--distutils2/run.py7
2 files changed, 11 insertions, 1 deletions
diff --git a/distutils2/pysetup b/distutils2/pysetup
new file mode 100755
index 0000000..997ab19
--- /dev/null
+++ b/distutils2/pysetup
@@ -0,0 +1,5 @@
+#!/usr/bin/env python
+from distutils2.run import main
+
+if __name__ == "__main__":
+ main()
diff --git a/distutils2/run.py b/distutils2/run.py
index cb51dc5..26df90b 100644
--- a/distutils2/run.py
+++ b/distutils2/run.py
@@ -63,7 +63,12 @@ def main(**attrs):
attrs['script_name'] = os.path.basename(sys.argv[0])
if 'script_args' not in attrs:
- attrs['script_args'] = sys.argv[1:]
+ if sys.argv[1] == "help":
+ script_args = sys.argv[2:]
+ script_args.append("--help")
+ else:
+ script_args = sys.argv[1:]
+ attrs['script_args'] = script_args
# Create the Distribution instance, using the remaining arguments
# (ie. everything except distclass) to initialize it