From e8a023fe619be6f59dc6c3a1a2bc35b9f27a3cd0 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sat, 16 Sep 2023 22:08:12 +0300 Subject: [PATCH] Add the symbol option and its default. --- src/cipher_analytical_machine/cli.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cipher_analytical_machine/cli.clj b/src/cipher_analytical_machine/cli.clj index d36d688..74e8555 100644 --- a/src/cipher_analytical_machine/cli.clj +++ b/src/cipher_analytical_machine/cli.clj @@ -2,6 +2,7 @@ (:require [cipher-analytical-machine.file :as file] [cipher-analytical-machine.caesar :as caesar] + [cipher-analytical-machine.symbol-factories :as sf] [clojure.string :as cs] [clojure.tools.cli :refer [parse-opts]]) (:gen-class)) @@ -17,6 +18,8 @@ :default "Caesar"] ["-e" "--encrypt" "Encrypt the message."] ["-d" "--decrypt" "Decrypt the message."] + ["-s" "--symbols" "The string will be used as a set of symbols for a cipher." + :default (sf/default-symbol-factory "en")] ["-h" "--help"]]) (defn usage [options-summary]