Skip to content
RED SAGSkills
medium10 pts · first answer countslinuxbash

Parsing -e and -v flags

In the loop below, what does the colon after "e" in "e:v" mean?

while getopts "e:v" opt; do
  case $opt in
    e) env=$OPTARG ;;
    v) verbose=1 ;;
  esac
done
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions