Skip to content

Commit

Permalink
tuftool: Add --version option
Browse files Browse the repository at this point in the history
This adds a `--version` to the `tuftool` command to print out the tool's
version number.

Signed-off-by: Sean McGinnis <[email protected]>
  • Loading branch information
stmcginnis committed Nov 15, 2023
1 parent 53d5768 commit d3a405e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tuftool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit d3a405e

Please sign in to comment.