Trying to simplify bash function
Fixed warning about exiting eval via next/last
Added showing a list of options if the current parameter is an option