Revert "CMD arguments and CaptureMode was mixed up"
This reverts commit 73a87236399c42d97c3e59971ba8449103b3d374.
It was correct before, even though the code looked wrong.