提交 3d01651f 编写于 作者: C custa

move code flow to main()

上级 3872cd28
......@@ -333,7 +333,8 @@ parser_query.add_argument("--table", required=True, choices=["tracking", "issue"
parser_query.add_argument("--repo", help="source package repository")
parser_query.add_argument("--branch", help="source package branch")
if __name__ == "__main__":
def main():
args_ = parser.parse_args()
if args_.subparser_name:
if args_.func(args_) != "success":
......@@ -343,3 +344,7 @@ if __name__ == "__main__":
else:
parser.print_help()
sys.exit(1)
if __name__ == "__main__":
main()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册