aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-20 07:20:46 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-20 07:32:54 +0800
commit9b896d697eb582dedd2533f6d2054f062c8381a0 (patch)
treeb7e8db33af8e6837f3d389d4302b821d401ec0d8 /README.md
parent69354929928d1d071698262c259cdffbf9aec468 (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.md6
1 files changed, 1 insertions, 5 deletions
diff --git a/README.md b/README.md
index 0ac230d..394622d 100644
--- a/README.md
+++ b/README.md
@@ -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