Skip to content

Commit 71b4ebb

Browse files
committed
prevent workon_help from polluting the global namespace
1 parent 2ff96eb commit 71b4ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtualenvwrapper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ function showvirtualenv {
608608
}
609609

610610
# Show help for workon
611-
function workon_help {
611+
function _workon_help {
612612
echo "Usage: workon env_name"
613613
echo ""
614614
echo " Deactivate any currently activated virtualenv"
@@ -646,7 +646,7 @@ function workon {
646646
a="${in_args[$i]}"
647647
case "$a" in
648648
-h|--help)
649-
workon_help;
649+
_workon_help;
650650
return 0;;
651651
esac
652652
i=$(( $i + 1 ))

0 commit comments

Comments
 (0)