From 8734e1eba9b9b496f79a9f6cfcba929a9666d494 Mon Sep 17 00:00:00 2001 From: ElectronixTM Date: Sun, 16 Mar 2025 03:00:06 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=BE=D0=B1=D0=BE=D0=B7=D0=BD=D0=B0?= =?UTF-8?q?=D1=87=D0=B8=D0=BB=20=D0=B0=D1=80=D0=B3=D1=83=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D1=8B=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D0=BD=D0=BE?= =?UTF-8?q?=D0=B9=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/markov.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/markov.py b/src/markov.py index 3f32c85..c8c2405 100644 --- a/src/markov.py +++ b/src/markov.py @@ -1,5 +1,22 @@ +import rulesparser +import rulebook +import argparse + def main(): - raise NotImplementedError("Sorry, this project is WIP and didn't implement user functionality yet") + parser = argparse.ArgumentParser( + prog = "Markov", + description = "Simple tool to apply Markov's normal algorithms" + ) + parser.add_argument("rulebook", type=str, help="File with the rules for algorithm") + parser.add_argument("-c", "--command-line-input", type=str, nargs='?', + help="Takes input from user via command line " + "arguments. There should be only one string. " + "Please, use quotation marks") + parser.add_argument("-v", "--verbose", action="store_true", + help="If set, verbose output will be produced. " + "It'll contain all intermediate transformations, " + "reason of stop etc.") + parser.parse_args() if __name__ == "__main__": main()