From 7493b4308c62175c452365c5edd214813d25e638 Mon Sep 17 00:00:00 2001 From: Joerg Herbel Date: Thu, 18 Jul 2024 18:03:46 +0200 Subject: [PATCH] Add `--version` argument to binaries CMK-18367 --- src/bin/agent_plugin.rs | 2 +- src/bin/scheduler/cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/agent_plugin.rs b/src/bin/agent_plugin.rs index 8631dd6c..03d424d2 100644 --- a/src/bin/agent_plugin.rs +++ b/src/bin/agent_plugin.rs @@ -11,7 +11,7 @@ use std::fs::read_to_string; use std::io; #[derive(Parser)] -#[command(about = "Robotmk agent plugin.")] +#[command(about = "Robotmk agent plugin.", version)] struct Args { /// Configuration file path. #[clap(name = "CONFIG_PATH")] diff --git a/src/bin/scheduler/cli.rs b/src/bin/scheduler/cli.rs index 5e77a859..cdddea4e 100644 --- a/src/bin/scheduler/cli.rs +++ b/src/bin/scheduler/cli.rs @@ -3,7 +3,7 @@ use clap::{ArgAction, Parser}; use flexi_logger::LogSpecification; #[derive(Parser)] -#[command(about = "Robotmk scheduler.")] +#[command(about = "Robotmk scheduler.", version)] pub struct Args { /// Configuration file path. #[arg(name = "CONFIG_PATH")]