diff options
author | emkael <emkael@tlen.pl> | 2024-01-15 16:13:01 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2024-01-15 18:14:15 +0100 |
commit | eff425134efd6e7ff13db3dcf83b575984e5cda6 (patch) | |
tree | 6ea16cdd46fc299f1aefb5d22993f4b98482e019 | |
parent | 4e7c4a314fadafc960c204401b4ac4600e807873 (diff) |
"create" command
-rw-r--r-- | pysquaredeal.py | 7 |
1 files changed, 6 insertions, 1 deletions
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) |