Add the analyzer options and their actions.

This commit is contained in:
2023-10-14 17:22:03 +03:00
parent a44fc24bee
commit 6339774bd1
2 changed files with 20 additions and 4 deletions
@@ -9,6 +9,9 @@
(def default-cipher "Caesar")
(def analyzers-options
{"Caesar" #{"Chi^2" "Frequency"}})
(def language-options
#{"en", "uk"})
@@ -28,6 +31,7 @@
["-l" "--language CODE" "The string will be used to set a default symbols for a cipher."
:validate [#(contains? language-options %) "Must be a code from the list: en, uk!!!"]]
["-C" "--cracking" "Cracking the encrypted message."]
["-a" "--analyzer ANALYZER" "The way of cracking."]
["-O" "--output-file OUTPUT-FILE" "Save the program output to a file."]
["-h" "--help"]])