     options.alias('h', 'help').describe('help', 'Print this usage message')
     options.boolean('installed').describe('installed', 'Star all packages in ~/.atom/packages')
 
-  starPackage: (packageName, token, callback) ->
+  starPackage: (packageName, {ignoreUnpublishedPackages, token}={}, callback) ->
     process.stdout.write '\u2B50  ' if process.platform is 'darwin'
     process.stdout.write "Starring #{packageName} "
     requestSettings =

      if error?
        @logFailure()
        callback(error)
      else if response.statusCode isnt 200
        @logFailure()
        message = body.message ? body.error ? body

    Login.getTokenOrLogin (error, token) =>
      return callback(error) if error?

      starOptions =
        ignoreUnpublishedPackages: options.argv.installed
        token: token

      commands = packageNames.map (packageName) =>
        (callback) => @starPackage(packageName, starOptions, callback)
      async.waterfall(commands, callback)
