Use getopt

Node binds it already, see https://github.com/joyent/node/blob/master/lib/console.js#L46