Custom help message when using argh

Help messages generated from argh is nearly useless and very hard to
customize. Fork argh and disable all code for generating help messages.

Use a closure to print the help message when handling EarlyExit.
This commit is contained in:
topjohnwu
2023-07-05 17:05:39 -07:00
parent 5ee6daf126
commit d778b0b0a7
7 changed files with 79 additions and 77 deletions

View File

@@ -6,6 +6,7 @@ resolver = "2"
[workspace.dependencies]
cxx = { path = "external/cxx-rs" }
cxx-gen = { path = "external/cxx-rs/gen/lib" }
argh = { path = "external/argh/argh" }
libc = "0.2"
cfg-if = "1.0"
num-traits = "0.2"
@@ -13,7 +14,6 @@ num-derive = "0.3"
thiserror = "1.0"
byteorder = "1"
size = "0.4"
argh = "0.1.10"
sha1 = "0.10"
sha2 = "0.10"
digest = "0.10"