Commit 27dfe6e0 authored by nextime's avatar nextime

Fix --debug argument parsing

- Added --debug argument to the main argument parser
- Fixed duplicate argument parser issue
- --debug switch now works correctly
parent b1a474ac
...@@ -1686,6 +1686,7 @@ if __name__ == "__main__": ...@@ -1686,6 +1686,7 @@ if __name__ == "__main__":
parser.add_argument('--ip', default='localhost', help='Proxy server IP (default: localhost)') parser.add_argument('--ip', default='localhost', help='Proxy server IP (default: localhost)')
parser.add_argument('--port', type=int, default=11434, help='Proxy server port (default: 11434)') parser.add_argument('--port', type=int, default=11434, help='Proxy server port (default: 11434)')
parser.add_argument('--connect', help='Connect to existing browser via CDP (e.g., ws://localhost:9222)') parser.add_argument('--connect', help='Connect to existing browser via CDP (e.g., ws://localhost:9222)')
parser.add_argument('--debug', action='store_true', help='Enable debug logging and save prompts to log file')
args = parser.parse_args() args = parser.parse_args()
if args.port != 11434: if args.port != 11434:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment