Add program description to full help

This commit is contained in:
a_dinosaur committed 2025-11-02 02:01:05 +11:00
1 parent 912d282d12
commit 57791b1a93
3 files changed
+22 -4

No files matched your search

+2 -1
View File
@@ -208,7 +208,8 @@ pub fn main() -> ExitCode {
Opt::value(Arg::Bin, &["--bin", "-b"], "data.bin").help_text("Add a binary file"),
Opt::value(Arg::Txt, &["--txt", "-t"], "text.txt").help_text("Add a text file"),
Opt::value(Arg::Whitespace, &["--whitespace"], "\" \"").help_text("Emitted indentation (Default: \"\\t\")"),
]);
]).with_description("Convert one or more binary and text file(s) to a C header file,\n\
as arrays and C strings respectively.");
match OPTIONS.parse_easy(|program_name, id, _opt, _name, arg| {
match id {
Arg::Out => { arguments.out = arg.into(); }