MCPcopy
hub / github.com/JaveleyQAQ/WeChatOpenDevTools-Python / main

Function main

main.py:13–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 print(color + message + Color.END)
12
13def main():
14 HELPALL = """
15 请选择要执行的方法:
16 [+] python main.py -h 查看帮助
17 [+] python main.py -x 开启小程序F12
18 [+] python main.py -c 开启内置浏览器F12
19 [+] python main.py -all 开启内置浏览器F12与小程序F12
20
21 """
22 parser = argparse.ArgumentParser(description=HELPALL, formatter_class=RawTextHelpFormatter)
23 parser.add_argument('-x', action='store_true', help='开启小程序F12')
24 parser.add_argument('-c', action='store_true', help='开启内置浏览器F12')
25 parser.add_argument('-all', action='store_true', help='开启内置浏览器F12与小程序F12')
26 args = parser.parse_args()
27
28 if args.x:
29 commons.load_wechatEx_configs()
30 elif args.c:
31 commons.load_wechatEXE_configs()
32 elif args.all:
33 commons.load_wechatEXE_and_wechatEx()
34 else:
35
36 print_colored_message(HELPALL, Color.RED)
37
38if __name__ == "__main__":
39 generate_banner()

Callers 1

main.pyFile · 0.85

Calls 4

print_colored_messageFunction · 0.85
load_wechatEx_configsMethod · 0.80

Tested by

no test coverage detected