options parser for bash