Skip to content

Commit 7a98b72

Browse files
committed
catch --help option to mkvirtualenv; fixes #136
1 parent e822184 commit 7a98b72

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/en/history.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ dev
1717
name, it prints the list of core hooks.
1818
- Merge several fixes for path and variable handling for MSYS users
1919
from :bbuser:`bwanamarko`. Includes a fix for :bbissue:`138`.
20+
- Change :ref:`command-mkvirtualenv` so it catches both ``-h`` and
21+
``--help``.
2022

2123
3.2
2224

virtualenvwrapper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function mkvirtualenv_help {
298298
echo;
299299
echo 'virtualenv help:';
300300
echo;
301-
virtualenv -h;
301+
virtualenv $@;
302302
}
303303

304304
# Create a new environment, in the WORKON_HOME.
@@ -334,8 +334,8 @@ function mkvirtualenv {
334334
-a)
335335
i=$(( $i + 1 ));
336336
project="${in_args[$i]}";;
337-
-h)
338-
mkvirtualenv_help;
337+
-h|--help)
338+
mkvirtualenv_help $a;
339339
return;;
340340
-i)
341341
i=$(( $i + 1 ));

0 commit comments

Comments
 (0)