Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (13 sloc) 437 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
from flask import Flask
import pokr.scripts # Do not remove this line
from utils.command import Command
if __name__ == '__main__':
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(dest='command')
for command in Command.__subclasses__():
command.register(subparsers)
args = parser.parse_args()
args.run(**args.__dict__)