     "AtomPackageManager/#{require('../package.json').version}"
 
   welcomeMessage: (state) =>
+    return Q(state) if state.token
+
     welcome = """
       Welcome to Atom!
 


    @prompt({prompt: "Press [Enter] to open your account page on Atom.io."})

  openURL: ->
    open('https://atom.io/account')

  getToken: (state) =>

      be used to identify you when publishing packages to atom.io.
    """
    options.alias('h', 'help').describe('help', 'Print this usage message')
    options.alias('t', 'token').describe('token', 'atom.io API token')

  run: (options) ->
    {callback} = options
    options = @parseOptions(options.commandArgs)
    Q(token: options.argv.token)
      .then(@welcomeMessage)
      .then(@openURL)
      .then(@getToken)
