From d3a405ebc2babeb013c3df485332f45950c81c9c Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Wed, 15 Nov 2023 20:38:43 +0000 Subject: [PATCH] tuftool: Add --version option This adds a `--version` to the `tuftool` command to print out the tool's version number. Signed-off-by: Sean McGinnis --- tuftool/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tuftool/src/main.rs b/tuftool/src/main.rs index 2f9c2c8c..ac927462 100644 --- a/tuftool/src/main.rs +++ b/tuftool/src/main.rs @@ -48,6 +48,7 @@ static SPEC_VERSION: &str = "1.0.0"; /// This wrapper enables global options and initializes the logger before running any subcommands. #[derive(Parser)] +#[command(version)] struct Program { /// Set logging verbosity [trace|debug|info|warn|error] #[clap(name = "log-level", short, long, default_value = "info")]