Skip to content

Commit b377ce7

Browse files
author
Michael Saki
committed
Explain -r and -p in Python version prompt
1 parent 3acc8d6 commit b377ce7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup-env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,12 @@ else
180180
env_name=${PWD##*/}
181181
fi
182182

183-
# List Python versions and select one interactively
183+
# List Python versions and select one interactively.
184184
if [ $LIST_VERSIONS -ne 0 ]; then
185185
echo Available Python versions:
186186
python_versions
187+
# Read the user's desired Python version.
188+
# -r: treat backslashes as literal, -p: display prompt before input.
187189
read -r -p "Enter the desired Python version: " PYTHON_VERSION
188190
# Check the Python versions being passed in.
189191
if [ -n "${PYTHON_VERSION+x}" ]; then

0 commit comments

Comments
 (0)