summaryrefslogtreecommitdiffstats
path: root/g4f/gui/gui_parser.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-19 17:26:05 +0100
committerGitHub <noreply@github.com>2024-11-19 17:26:05 +0100
commita0f3ea144307321740d9634513e356d039851b33 (patch)
tree26181d312eb3e8892c8e61e624dcc72cefbd42b0 /g4f/gui/gui_parser.py
parentMerge pull request #2380 from hlohaus/info (diff)
parentAdd aliases to gui arguments, fix logs variable (diff)
downloadgpt4free-a0f3ea144307321740d9634513e356d039851b33.tar
gpt4free-a0f3ea144307321740d9634513e356d039851b33.tar.gz
gpt4free-a0f3ea144307321740d9634513e356d039851b33.tar.bz2
gpt4free-a0f3ea144307321740d9634513e356d039851b33.tar.lz
gpt4free-a0f3ea144307321740d9634513e356d039851b33.tar.xz
gpt4free-a0f3ea144307321740d9634513e356d039851b33.tar.zst
gpt4free-a0f3ea144307321740d9634513e356d039851b33.zip
Diffstat (limited to 'g4f/gui/gui_parser.py')
-rw-r--r--g4f/gui/gui_parser.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/g4f/gui/gui_parser.py b/g4f/gui/gui_parser.py
index 9fd70bef..5a898203 100644
--- a/g4f/gui/gui_parser.py
+++ b/g4f/gui/gui_parser.py
@@ -2,8 +2,12 @@ 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("-port", type=int, default=8080, help="port")
- parser.add_argument("-debug", action="store_true", help="debug mode")
+ 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("--ignore-cookie-files", action="store_true", help="Don't read .har and cookie files.")
return parser \ No newline at end of file