March 2016 update: Problem 11053 was fixed by DamienG because:
The existing solution, caused by calling the command line to exit and hibernate, is not built into Windows.
The new solution works by creating a powershell child process that passes its PID to the atom and then waits indefinitely. When an atom completes this process, the parent process continues.
Instead of waiting for Atom 1.7, you can immediately replace atom.cmd with this one .
February 2016 Update: Issue 3074 just closed with PR 9798 :
This is fixed and should be in Atom 1.6.0 .
Original answer (end of 2014)
The --wait option --wait not work yet (Q4 2014, v0.141.0 +) on Windows.
See issue 3074
atom --wait myfile.txt
It exits immediately, but continues to open the file. The expected result is to wait until the file is closed in the editor.
source share