function quit { exit } function hello { echo Hello! echo "Params = $2 ,$3" } function explain_hello { echo "Options are:" echo "-burn [iso file path]" echo "-rip [iso file path]" } if [ "$1" = "-help" ] || [ "$1" = "" ]; then explain_hello else hello fi quit