diff --git a/src/cipher_analytical_machine/cli.clj b/src/cipher_analytical_machine/cli.clj index 1ea0653..2b198c7 100644 --- a/src/cipher_analytical_machine/cli.clj +++ b/src/cipher_analytical_machine/cli.clj @@ -147,7 +147,8 @@ (defn show-and-save-output "Print and save the output to a file if needed" [output options] - (save-output output options) + (when (contains? options :output-file) + (save-output output options)) (println output)) (defn cracking-actions