提交 f51cb29e 编写于 作者: G gaoruoshu 提交者: Gitee

add app.py.

上级 1e1df489
import os
import logging
import requests
import argparse
from gitee import Gitee
def main():
"""main function"""
if not os.path.exists("gitee.conf"):
logging.error("config file does not exist")
return
commands()
def commands():
gitee = Gitee("gitee.conf")
parser = argparse.ArgumentParser(description="test argparse")
parser.add_argument("-O", "--organization", type=str, help="get info about an organization")
args = parser.parse_args()
if args.organization:
gitee.get_orgs_info(args.organization)
main()
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册