|
8 | 8 | if TYPE_CHECKING: |
9 | 9 | from typing import TextIO |
10 | 10 |
|
11 | | -ROOT_HELP = """Usage: pythinker [OPTIONS] COMMAND [ARGS]... |
12 | | -
|
13 | | - Pythinker, your next CLI agent. |
14 | | -
|
15 | | -Options: |
16 | | - -h, --help Show this message and exit. |
17 | | - -V, --version Show version and exit. |
18 | | - --verbose Print verbose information. |
19 | | - --debug Log debug information. |
20 | | - -w, --work-dir DIRECTORY Working directory for the agent. |
21 | | - --add-dir DIRECTORY Add an additional workspace directory. |
22 | | - -S, -r, --session, --resume TEXT Resume a session. |
23 | | - -C, --continue Continue the previous session. |
24 | | - --config TEXT Config TOML/JSON string to load. |
25 | | - --config-file FILE Config TOML/JSON file to load. |
26 | | - -m, --model TEXT LLM model to use. |
27 | | - --thinking / --no-thinking Enable or disable thinking mode. |
28 | | - -y, --yolo, --yes, --auto-approve |
29 | | - Dangerously skip permission approvals. |
30 | | - --plan Start in plan mode. |
31 | | - --auto Run in auto mode (no user present). |
32 | | - -p, -c, --prompt, --command TEXT User prompt to the agent. |
33 | | - --print Run in print mode. |
34 | | - --acp Deprecated; use `pythinker acp`. |
35 | | - --wire Run as Wire server. |
36 | | - --quiet Print only the final assistant message. |
37 | | - --agent [default|okabe] Builtin agent specification to use. |
38 | | - --agent-file FILE Custom agent specification file. |
39 | | - --mcp-config-file FILE MCP config file to load; repeatable. |
40 | | - --mcp-config TEXT MCP config JSON to load; repeatable. |
41 | | - --skills-dir DIRECTORY Custom skills directory; repeatable. |
42 | | - --no-telemetry Disable anonymous telemetry & error reporting. |
43 | | -
|
44 | | -Commands: |
45 | | - acp Run Pythinker CLI ACP server. |
46 | | - term Run Toad TUI backed by Pythinker CLI ACP server. |
47 | | - login Login with a model provider. |
48 | | - logout Logout from a model provider. |
49 | | - info Show version and protocol information. |
50 | | - export Export session data. |
51 | | - mcp Manage MCP server configurations. |
52 | | - plugin Manage plugins. |
53 | | - review Diff-focused code review (delegates to pythinker-review). |
54 | | - secscan Diff-focused security review (delegates to pythinker-review). |
55 | | - security-scan Repo-wide Pythinker Security Scan pipeline (Python-native). |
56 | | - debug Failure/log root-cause analysis (delegates to pythinker-review). |
57 | | - update Check for and install Pythinker CLI updates. |
58 | | - vis Run Pythinker Agent Tracing Visualizer. |
59 | | - web Run Pythinker CLI web interface. |
60 | | -
|
61 | | -Documentation: https://pythoughts-labs.github.io/pythinker-code/ |
62 | | -LLM friendly version: https://pythoughts-labs.github.io/pythinker-code/llms.txt |
63 | | -""" |
64 | | - |
65 | 11 |
|
66 | 12 | def _prog_name() -> str: |
67 | 13 | return Path(sys.argv[0]).name or "pythinker" |
@@ -126,10 +72,6 @@ def main(argv: Sequence[str] | None = None) -> int | str | None: |
126 | 72 | print(f"pythinker, version {get_version()} — by {ORGANIZATION}") |
127 | 73 | return 0 |
128 | 74 |
|
129 | | - if len(args) == 1 and args[0] in {"--help", "-h"}: |
130 | | - print(ROOT_HELP, end="") |
131 | | - return 0 |
132 | | - |
133 | 75 | from pythinker_code.telemetry.crash import install_crash_handlers, set_phase |
134 | 76 | from pythinker_code.utils.proxy import normalize_proxy_env |
135 | 77 |
|
|
0 commit comments