Merge pull request #2382 from hlohaus/info

Fix aliases to gui  arguments
This commit is contained in:
H Lohaus 2024-11-19 17:33:52 +01:00 committed by GitHub
commit 3aa497f379
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,11 +3,7 @@ from argparse import ArgumentParser
def gui_parser():
parser = ArgumentParser(description="Run the GUI")
parser.add_argument("--host", type=str, default="0.0.0.0", help="hostname")
parser.add_argument_alias('-h', '--host')
parser.add_argument("--port", type=int, default=8080, help="port")
parser.add_argument_alias('-p', '--port')
parser.add_argument("--debug", action="store_true", help="debug mode")
parser.add_argument_alias('-d', '--debug')
parser.add_argument_alias('-debug', '--debug')
parser.add_argument("--port", "-p", type=int, default=8080, help="port")
parser.add_argument("--debug", "-d", "-debug", action="store_true", help="debug mode")
parser.add_argument("--ignore-cookie-files", action="store_true", help="Don't read .har and cookie files.")
return parser