File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,13 +165,13 @@ venv::deactivate() {
165165
166166venv::install () {
167167 if venv::_check_if_help_requested " $1 " ; then
168- echo " venv install [<requirements file>] [--skip-lock] [<install args>]"
168+ echo " venv install [<requirements file>] [--skip-lock|-s ] [<install args>]"
169169 echo
170170 echo " Clear the environment, then install requirements from <requirements file>,"
171171 echo " like 'requirements.txt' or 'requirements.lock'."
172172 echo " Installed packages are then locked into the corresponding .lock-file,"
173173 echo " e.g. 'venv install requirements.txt' will lock packages into 'requirements.lock'."
174- echo " This step is skipped if '--skip-lock' is specified, or when installing"
174+ echo " This step is skipped if '--skip-lock' or '-s' is specified, or when installing"
175175 echo " directly from a .lock-file."
176176 echo
177177 echo " The <requirements file> must be in the form '*requirements.[txt|lock]'."
@@ -185,7 +185,7 @@ venv::install() {
185185 echo
186186 echo " $ venv install dev-requirements.txt"
187187 echo
188- echo " $ venv install requirements.txt --skip-lock --no-cache"
188+ echo " $ venv install requirements.txt --skip-lock|-s --no-cache"
189189 return " ${_success} "
190190 fi
191191
@@ -206,7 +206,7 @@ venv::install() {
206206 fi
207207
208208 local skip_lock=false
209- if [ " $1 " = " --skip-lock" ]; then
209+ if [ " $1 " = " --skip-lock" ] || [ " $1 " = " -s " ] ; then
210210 skip_lock=true
211211 shift
212212 fi
You can’t perform that action at this time.
0 commit comments