Add the analyzer options and their actions.
This commit is contained in:
@@ -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"]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user