()
| 11 | print(color + message + Color.END) |
| 12 | |
| 13 | def 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 | |
| 38 | if __name__ == "__main__": |
| 39 | generate_banner() |
no test coverage detected