From 31c0bcfeae2ad371b50a0ce42b7f30fa71378cb1 Mon Sep 17 00:00:00 2001 From: David Peter Date: Sat, 26 Nov 2022 13:05:37 +0100 Subject: [PATCH] Improve error messages --- src/bin/hexyl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/hexyl.rs b/src/bin/hexyl.rs index 45df101..92fadf8 100644 --- a/src/bin/hexyl.rs +++ b/src/bin/hexyl.rs @@ -352,7 +352,7 @@ fn run() -> Result<(), AnyhowError> { .get_one::("group_bytes") .map(|s| { s.parse::().map(u8::from).context(anyhow!( - "failed to parse `--group-bytes` arg {:?} as unsigned nonzero integer", + "failed to parse `--group-bytes`/`-g` arg {:?} as unsigned nonzero integer", s )) }) @@ -362,7 +362,7 @@ fn run() -> Result<(), AnyhowError> { group_bytes } else { return Err(anyhow!( - "the possible options of group_bytes could only be 1, 2, 4 or 8. " + "Possible options for the `--group-bytes`/`-g` option are 1, 2, 4 or 8. " )); } } else {