rust: Streamline and cleanup verbosity handling

Create one implementation for the verbose option to be used by all
tools. While at it, add a quiet option to decrease the verbosity.

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Steffen Eiden
2024-11-07 11:03:41 +01:00
parent 576a230341
commit 53d803abf3
9 changed files with 125 additions and 123 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ macro_rules! on_error_print_and_exit {
fn main() -> ExitCode {
// handle version option
if cli::ARGS.version {
print_version!(0, "2023");
print_version!("2023");
return ExitCode::SUCCESS;
}