diff --git a/stocks/stocks b/stocks/stocks index 1994359..97673df 100755 --- a/stocks/stocks +++ b/stocks/stocks @@ -136,8 +136,11 @@ while getopts "uv" opt; do esac done + if [[ $1 == "update" ]];then update +elif [[ $# == "0" ]];then + echo "Error: requires an argument either stocks [company] or stocks [stock symbol]" else getTicker $1 $2 $3 $4 $5 $6 $7 $8 $9 # the company name might have spaces so passing in all args allows for this getStockInformation $symbol # based on the stock symbol exrapolated by the getTicker function get information on the stock