style: compare return value of getopt() against -1 rather than EOF