1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
# -*- coding: utf-8 -*-
"""PyCM main."""
import doctest
import sys
from .cm import *
from .output import *
from art import tprint
if __name__ == "__main__":
args = sys.argv
if len(args) > 1:
if args[1].upper() == "TEST":
error_flag = doctest.testfile(
"basic_test.py",
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
| doctest.IGNORE_EXCEPTION_DETAIL,
verbose=False)[0]
sys.exit(error_flag)
else:
tprint("pycm")
tprint("V:" + PYCM_VERSION)
pycm_help()
else:
tprint("pycm")
tprint("V:" + PYCM_VERSION)
pycm_help()
|