     exitStatus = null
 
     before (done) ->
-      custom =
-        argv: [
-          "./test/fixtures/single-get.apib"
-          "http://localhost:#{PORT}"
-          "--reporter=apiary"
-        ]
-        apiaryApiUrl: "http://127.0.0.1:#{PORT+1}"
-        dreddRestDebug: '1'
+      cmd =
+        options:
+          path: ["./test/fixtures/single-get.apib"]
+          reporter: ["apiary"]
+        custom:
+          apiaryApiUrl: "http://127.0.0.1:#{PORT+1}"
+          dreddRestDebug: '1'
 
       apiary = express()
       app = express()

          res.type('json').status(201).send [kind: 'bulldozer', imatriculation: 'willy']

        server = app.listen PORT, () ->
          execCommand custom, () ->
            server.close()

        server.on 'close', done

          res.type('json').status(200).send [type: 'bulldozer', name: 'willy']

        server = app.listen PORT, () ->
          execCommand cmd, ->
            server.close()

        server.on 'close', done
