ungleich-game/archive/ungleich.py

24 lines
599 B
Python
Raw Normal View History

2019-05-25 20:45:44 +00:00
#!/usr/bin/env python3
import argparse
import sys
VERSION="0.0.1"
if __name__ == '__main__':
parser = {}
parser['main'] = argparse.ArgumentParser(
description="ungleich cli {}".format(VERSION) )
parser['main'].add_argument(
'-V', '--version', help='Show version.', action='version',
version='%(prog)s ' + VERSION)
parser['sub'] = parser['main'].add_subparsers(
title="Commands", dest="command")
parser['register'] = parser['sub'].add_parser(
'register')
parser_args = parser['main'].parse_args(sys.argv[1:])