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 /README.md | |
| 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 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -7,11 +7,7 @@ This is a CLI program that reads your microphone device and outputs information # Usage ``` -dmvop --output=stdout --fmt="%{vol},%{word},%{confidence}" --device="/dev/mymic" - --output=stderr --fmt-file="./fmt.txt" - --output=ipc - --output=tcp - --output=udp +dmvop --help ``` # License |
