From f647449497967dc682b9cd3d47e8857f8fa886f0 Mon Sep 17 00:00:00 2001 From: Dennis Ranke Date: Fri, 25 Aug 2023 19:42:59 +0200 Subject: [PATCH] add --raw-cost and --hexdump flags to help text --- README.md | 4 ++++ src/main.rs | 3 +++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 2232d9c..9e3121d 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ The 16 bit dos unpacker also uses some variations. (`upkr --x86`) -0, ..., -9 short form for setting compression level -d, --decompress decompress infile --heatmap calculate heatmap from compressed file + --raw-cost report raw cost of literals in heatmap + (the cost of literals is spread across all matches + that reference the literal by default.) + --hexdump print heatmap as colored hexdump --margin calculate margin for overlapped unpacking of a packed file When no infile is given, or the infile is '-', read from stdin. diff --git a/src/main.rs b/src/main.rs index c876e43..ba4aff7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -259,6 +259,9 @@ fn print_help(exit_code: i32) -> ! { eprintln!(" -0, ..., -9 short form for setting compression level"); eprintln!(" -d, --decompress decompress infile"); eprintln!(" --heatmap calculate heatmap from compressed file"); + eprintln!(" --raw-cost report raw cost of literals in heatmap"); + #[cfg(feature = "crossterm")] + eprintln!(" --hexdump print heatmap as colored hexdump"); eprintln!(" --margin calculate margin for overlapped unpacking of a packed file"); eprintln!(); eprintln!("When no infile is given, or the infile is '-', read from stdin.");