Move some cli stuff from bin/opal to cli.rb