From 0ea9198702f17e397442e29e51d8d2d62211e2a0 Mon Sep 17 00:00:00 2001 From: killian <63927363+KillianLucas@users.noreply.github.com> Date: Sat, 16 Nov 2024 16:36:50 -0800 Subject: [PATCH] wtf help command --- scripts/wtf.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/wtf.py b/scripts/wtf.py index 3fb35fc12..c25fffa55 100644 --- a/scripts/wtf.py +++ b/scripts/wtf.py @@ -1,5 +1,20 @@ -import asyncio import sys + +if len(sys.argv) == 2 and sys.argv[1] == "--help": + print( + """wtf is a command-line tool that fixes terminal errors. + +Usage: + wtf Fix the last error + wtf Get help with a specific question + wtf --help Show this help message + +Set INTERPRETER_WTF_MODEL to change the model (default: gpt-4o-mini) +Examples: gpt-4o-mini, ollama/qwen2.5-coder, cerebres/llama3.1-70b""" + ) + exit(0) + +import asyncio import threading import time