Skip to content

Commit

Permalink
Fix aliases to gui arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus committed Nov 19, 2024
1 parent 6e674ca commit e57b221
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions g4f/gui/gui_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
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

0 comments on commit e57b221

Please sign in to comment.