   socketPath = args['socket-path']
   userDataDir = args['user-data-dir']
   profileStartup = args['profile-startup']
+  clearState = args['clear-state']
   urlsToOpen = []
   devResourcePath = process.env.ATOM_DEV_RESOURCE_PATH ? path.join(app.getHomeDir(), 'github', 'atom')
   setPortable = args.portable


  {resourcePath, devResourcePath, pathsToOpen, urlsToOpen, executedFrom, test,
   version, pidToKillWhenClosed, devMode, safeMode, newWindow,
   logFile, socketPath, userDataDir, profileStartup, timeout, setPortable}

start()

  options.alias('w', 'wait').boolean('w').describe('w', 'Wait for window to be closed before returning.')
  options.string('socket-path')
  options.string('user-data-dir')
  options.boolean('clear-state').describe('clear-state', 'Delete all Atom environment state.')

  args = options.argv

