diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-20 07:20:46 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-20 07:32:54 +0800 |
| commit | 9b896d697eb582dedd2533f6d2054f062c8381a0 (patch) | |
| tree | b7e8db33af8e6837f3d389d4302b821d401ec0d8 /src/output_protocol | |
| parent | 69354929928d1d071698262c259cdffbf9aec468 (diff) | |
feat: add custom help message and fix clap help conflict
Disable clap's built-in help flag and reroute `-h`/`--help` to
print an embedded help text from `help.txt`. Use `try_parse` to
avoid clap's default exit on parse failure, allowing custom error
output.
Diffstat (limited to 'src/output_protocol')
| -rw-r--r-- | src/output_protocol/ipc.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/output_protocol/ipc.rs b/src/output_protocol/ipc.rs index fb6df80..ee27e42 100644 --- a/src/output_protocol/ipc.rs +++ b/src/output_protocol/ipc.rs @@ -60,8 +60,6 @@ impl OutputProtocol for IPCOutputProtocol { debug_log!("[IPC] Connected to {}", self.socket_path.display()); let bytes = format!("{}\n", message); let _ = stream.writable().await; - // We can't use the stream directly here since we need to store it - // for future sends. Let's store and send. let _ = stream.try_write(bytes.as_bytes()); *guard = Some(stream); } |
