#!/usr/bin/env node

'use strict'

var open = require('opn')
var meow = require('meow')
var extend = require('xtend')
var degree = require('./')

var cli = meow({
  help: [
    'Usage',
    '  degree [entries...]'
  ]
})

var entries = cli.input
if (!entries.length) throw new Error('entries are required')

degree(entries, extend(cli.flags, {stream: process.stdout}))
  .on('connect', function (server) {
    var uri = server.uri
    console.log('Server running at', uri)
    open(uri)
  })

@@ -366,127 +366,4 @@
 %7D))%0A
-  .on('connect', function (server) %7B%0A    var uri = server.uri%0A    console.log('Server running at', uri)%0A    open(uri)%0A  %7D)%0A

Remove server log statement (handled by budo)