--foreground option does nothing


#1

atom --help says that --foreground “keeps the browser process in the foreground”.

But as far as I can tell, the option’s value is never referred to in the code.

Is this option meant to do what it says, or is it a mistake that it’s listed in the --help?


#2

The --foreground option keeps the Atom attached to the terminal you opened it from, letting you see any console messages it logs, etc, and quit by pressing Ctrl+C in the terminal. However, if you already have an Atom window open, the new process will forward the open request to it and quit immediately.


#3

How is that different from --wait?


#4

atom --wait doesn’t:

  1. Output console.log to the terminal
  2. Quit by pressing Ctrl+C in the terminal from which it was opened