diff options
author | David Peter <mail@david-peter.de> | 2022-11-26 13:05:37 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2022-11-26 13:07:06 +0100 |
commit | 31c0bcfeae2ad371b50a0ce42b7f30fa71378cb1 (patch) | |
tree | d8d6239d063e520860d6d9912767abe60e1ddffc | |
parent | c0f94ad6aa084c3c6be133a87c1c009d66ec9c56 (diff) |
Improve error messages
-rw-r--r-- | src/bin/hexyl.rs | 4 |
1 files 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::<String>("group_bytes") .map(|s| { s.parse::<NonZeroU8>().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 { |