gui_parser.py 462 B

123456789
  1. from argparse import ArgumentParser
  2. def gui_parser():
  3. parser = ArgumentParser(description="Run the GUI")
  4. parser.add_argument("-host", type=str, default="0.0.0.0", help="hostname")
  5. parser.add_argument("-port", type=int, default=8080, help="port")
  6. parser.add_argument("-debug", action="store_true", help="debug mode")
  7. parser.add_argument("--ignore-cookie-files", action="store_true", help="Don't read .har and cookie files.")
  8. return parser