Skip to content

Commit

Permalink
Restore version option in aziotctl (#634)
Browse files Browse the repository at this point in the history
The EFLOW team uses `aziotctl --version` as part of their smoke test against final installed bits when they release, and they reported that the `--version` option isn't available in aziot-identity-service 1.5. It looks we used to get the option automatically, but when we upgraded to clap v4 the behavior changed.

This change updates aziotctl to explicitly opt in to the `--version` option.

To test, I built the changes and confirmed the option is reported in `--help`, and that the version is displayed when the option is given on the command line.
  • Loading branch information
damonbarry authored Sep 17, 2024
1 parent 72cea82 commit 17074d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aziotctl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async fn main() {
}

#[derive(Parser)]
#[command(version)]
enum Options {
/// Work with the configuration of the Azure IoT Identity Service and related services.
#[command(subcommand)]
Expand Down

0 comments on commit 17074d0

Please sign in to comment.