Skip to content

Commit 0ea9198

Browse files
committed
wtf help command
1 parent 11fd63b commit 0ea9198

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

scripts/wtf.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
import asyncio
21
import sys
2+
3+
if len(sys.argv) == 2 and sys.argv[1] == "--help":
4+
print(
5+
"""wtf is a command-line tool that fixes terminal errors.
6+
7+
Usage:
8+
wtf Fix the last error
9+
wtf <question> Get help with a specific question
10+
wtf --help Show this help message
11+
12+
Set INTERPRETER_WTF_MODEL to change the model (default: gpt-4o-mini)
13+
Examples: gpt-4o-mini, ollama/qwen2.5-coder, cerebres/llama3.1-70b"""
14+
)
15+
exit(0)
16+
17+
import asyncio
318
import threading
419
import time
520

0 commit comments

Comments
 (0)