# Process command line arguments while getopts "i:r:h" args; do case "$args" in i ) shift; packages="$@"; install;; v ) echo "Verbose!";; r ) shift; packages="$@"; remove;; h ) help;; ? ) echo "Error!";; esac done