From 38c429ec3831a6ebec766c1cb579d0e3f34ab5b5 Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sat, 6 Apr 2024 16:25:11 +0200 Subject: Update gui --- g4f/gui/gui_parser.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 g4f/gui/gui_parser.py (limited to 'g4f/gui/gui_parser.py') diff --git a/g4f/gui/gui_parser.py b/g4f/gui/gui_parser.py new file mode 100644 index 00000000..ad458f5c --- /dev/null +++ b/g4f/gui/gui_parser.py @@ -0,0 +1,8 @@ +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") + return parser \ No newline at end of file -- cgit v1.2.3