Commits

Doug Hellmann committed 7a98b72

catch --help option to mkvirtualenv; fixes #136

Comments (0)

Files changed (2)

docs/en/history.rst

     name, it prints the list of core hooks.
   - Merge several fixes for path and variable handling for MSYS users
     from :bbuser:`bwanamarko`. Includes a fix for :bbissue:`138`.
+  - Change :ref:`command-mkvirtualenv` so it catches both ``-h`` and
+    ``--help``.
 
 3.2
 

virtualenvwrapper.sh

     echo;
     echo 'virtualenv help:';
     echo;
-    virtualenv -h;
+    virtualenv $@;
 }
 
 # Create a new environment, in the WORKON_HOME.
             -a)
                 i=$(( $i + 1 ));
                 project="${in_args[$i]}";;
-            -h)
-                mkvirtualenv_help;
+            -h|--help)
+                mkvirtualenv_help $a;
                 return;;
             -i)
                 i=$(( $i + 1 ));