Source

rest-api-blueprint / runserver.py

import argparse
from restapiblueprint import app


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument(
        '--port', '-p', default=5000, type=int,
        help='port on which to run server')
    args = parser.parse_args()
    app.run(port=args.port, debug=True)