#!/usr/bin/env python
# -*- coding: utf8 - *-
"""For accessing cihai as a package."""

import sys
import os


def run():
    base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    sys.path.insert(0, base)
    from .process import Packager

    p = Packager.from_cli(sys.argv[1:])
    p.download()
    p.export()


if __name__ == '__main__':
    sys.exit(run())
