summaryrefslogtreecommitdiff
path: root/pysquaredeal.py
blob: 8da85656b456fa0aa8cbab93a907f73744fa8520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import argparse, sys

from squaredeal import SquareDeal


argparser = argparse.ArgumentParser(prog='pysquaredeal.py')

argparser.add_argument('sqd_file', metavar='SQD_FILE', help='path to SQD file')
argparser.add_argument('--sqk-file', metavar='SQK_FILE', help='path to SQK file, if not provided, deduced from SQD file', required=False)

subparsers = argparser.add_subparsers(title='command-specific arguments', metavar='COMMAND', dest='command')

argparser_create = subparsers.add_parser('create', help='create new SQD/SQK pair')
argparser_create.add_argument('--event-name', required=False, metavar='EVENT_NAME', help='event name (description)')
argparser_create.add_argument('--delayed-information', required=False, metavar='DELAYED_INFO', help='(description of) delayed information')

arguments = argparser.parse_args()
print(arguments)