From eff425134efd6e7ff13db3dcf83b575984e5cda6 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 15 Jan 2024 16:13:01 +0100 Subject: "create" command --- pysquaredeal.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pysquaredeal.py b/pysquaredeal.py index 8da8565..aee9fbf 100644 --- a/pysquaredeal.py +++ b/pysquaredeal.py @@ -15,4 +15,9 @@ argparser_create.add_argument('--event-name', required=False, metavar='EVENT_NAM argparser_create.add_argument('--delayed-information', required=False, metavar='DELAYED_INFO', help='(description of) delayed information') arguments = argparser.parse_args() -print(arguments) + +if arguments.command == 'create': + sd = SquareDeal() + sd.name = arguments.event_name + sd.delayed_info = arguments.delayed_information + sd.tofile(arguments.sqd_file, sqkpath=arguments.sqk_file) -- cgit v1.2.3