summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-19 17:33:52 +0100
committerGitHub <noreply@github.com>2024-11-19 17:33:52 +0100
commit3aa497f3798efd6a9e90bc2ec5f10c1c9a0f6165 (patch)
tree4619939992aa138a3ffdcaf3cb1aeb5fc8923119 /g4f
parentMerge pull request #2381 from hlohaus/info (diff)
parentFix aliases to gui arguments (diff)
downloadgpt4free-3aa497f3798efd6a9e90bc2ec5f10c1c9a0f6165.tar
gpt4free-3aa497f3798efd6a9e90bc2ec5f10c1c9a0f6165.tar.gz
gpt4free-3aa497f3798efd6a9e90bc2ec5f10c1c9a0f6165.tar.bz2
gpt4free-3aa497f3798efd6a9e90bc2ec5f10c1c9a0f6165.tar.lz
gpt4free-3aa497f3798efd6a9e90bc2ec5f10c1c9a0f6165.tar.xz
gpt4free-3aa497f3798efd6a9e90bc2ec5f10c1c9a0f6165.tar.zst
gpt4free-3aa497f3798efd6a9e90bc2ec5f10c1c9a0f6165.zip
Diffstat (limited to 'g4f')
-rw-r--r--g4f/gui/gui_parser.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/g4f/gui/gui_parser.py b/g4f/gui/gui_parser.py
index 5a898203..d47dd508 100644
--- a/g4f/gui/gui_parser.py
+++ b/g4f/gui/gui_parser.py
@@ -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 \ No newline at end of file