Use getopt

Should be `console.log.bind(console)`. It's lame, but log actually does reference `this`.