 
     @prompt({prompt: "Press [Enter] to open your account page on Atom.io."})
 
-  openURL: ->
+  openURL: (state) =>
+    return Q(state) if state.token
+
     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')

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

    "AtomPackageManager/#{require('../package.json').version}"

  welcomeMessage: (state) =>
    return Q(state) if state.token

    welcome = """
      Welcome to Atom!

