Correctly parse command line options

Your $1 and $2 were backwards for parsing option values :)