2024-04-06 17:25:11 +03:00
|
|
|
from argparse import ArgumentParser
|
|
|
|
|
2024-11-19 22:26:00 +03:00
|
|
|
from ..cookies import browsers
|
|
|
|
|
2024-04-06 17:25:11 +03:00
|
|
|
def gui_parser():
|
|
|
|
parser = ArgumentParser(description="Run the GUI")
|
2024-11-19 19:25:40 +03:00
|
|
|
parser.add_argument("--host", type=str, default="0.0.0.0", help="hostname")
|
2024-11-19 19:32:42 +03:00
|
|
|
parser.add_argument("--port", "-p", type=int, default=8080, help="port")
|
|
|
|
parser.add_argument("--debug", "-d", "-debug", action="store_true", help="debug mode")
|
2024-04-21 23:39:00 +03:00
|
|
|
parser.add_argument("--ignore-cookie-files", action="store_true", help="Don't read .har and cookie files.")
|
2024-11-19 22:26:00 +03:00
|
|
|
parser.add_argument("--cookie-browsers", nargs="+", choices=[browser.__name__ for browser in browsers],
|
|
|
|
default=[], help="List of browsers to access or retrieve cookies from.")
|
2024-04-06 17:25:11 +03:00
|
|
|
return parser
|