              (exec-tested-fn tested-fn)))))
 
 (defn test-cli-stderr
-  "Takes a function to be tested and a vector of string input commands and returns the string that was printed to stderr as a result of executing the supplied commands in the cli provided by the tested-fn."
+  "Takes a function to be tested and a vector of string input commands and returns the string that was printed to stderr as a result of executing the supplied commands in the cli provided by the tested-fn.
+  
+   If an optional string-latch is supplied, the call will block until the string-latch completed."
   ([tested-fn in-cmds]
     (.trim (utils/with-err-str (with-in-str (cmd-vector-to-test-input-string in-cmds) (exec-tested-fn tested-fn)))))
   ([tested-fn in-cmds sl]

      (rest expected-lines))))

(defn string-latch
  [sl-defs]
  (let [flags (doall
                (mapv

             (exec-tested-fn tested-fn)))))

(defn test-cli-stdout
  "Takes a function to be tested and a vector of string input commands and returns the string that was printed to stdout as a result of executing the supplied commands in the cli provided by the tested-fn.
  
   If an optional string-latch is supplied, the call will block until the string-latch completed."
  ([tested-fn in-cmds]
    (.trim (with-out-str (with-in-str (cmd-vector-to-test-input-string in-cmds) (exec-tested-fn tested-fn)))))
  ([tested-fn in-cmds sl]
