diff mbox series

[ovs-dev,1/2] cli: add option to display the version from Cargo.toml.

Message ID 167749934774.3717671.17030093662637799219.stgit@fed.void
State Not Applicable
Headers show
Series [ovs-dev,1/2] cli: add option to display the version from Cargo.toml. | expand

Checks

Context Check Description
ovsrobot/apply-robot fail apply and check: fail
ovsrobot/intel-ovs-compilation fail test: fail

Commit Message

Paolo Valerio Feb. 27, 2023, 12:02 p.m. UTC
Signed-off-by: Paolo Valerio <pvalerio@redhat.com>
---
 src/cli/cli.rs |    1 +
 1 file changed, 1 insertion(+)

Comments

Paolo Valerio Feb. 27, 2023, 12:12 p.m. UTC | #1
Sorry for the noise, but this local test got sent unintentionally.

Please, ignore it.

Paolo Valerio <pvalerio@redhat.com> writes:

> Signed-off-by: Paolo Valerio <pvalerio@redhat.com>
> ---
>  src/cli/cli.rs |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/cli/cli.rs b/src/cli/cli.rs
> index a5b08e6..f8593e1 100644
> --- a/src/cli/cli.rs
> +++ b/src/cli/cli.rs
> @@ -73,6 +73,7 @@ impl Debug for dyn SubCommand {
>  ///
>  /// packet-tracer is a tool for capturing networking-related events from the system using ebpf and analyzing them.
>  #[derive(Args, Default, Debug)]
> +#[command(version)]
>  pub(crate) struct MainConfig {}
>  
>  /// ThinCli handles the first (a.k.a "thin") round of Command Line Interface parsing.
diff mbox series

Patch

diff --git a/src/cli/cli.rs b/src/cli/cli.rs
index a5b08e6..f8593e1 100644
--- a/src/cli/cli.rs
+++ b/src/cli/cli.rs
@@ -73,6 +73,7 @@  impl Debug for dyn SubCommand {
 ///
 /// packet-tracer is a tool for capturing networking-related events from the system using ebpf and analyzing them.
 #[derive(Args, Default, Debug)]
+#[command(version)]
 pub(crate) struct MainConfig {}
 
 /// ThinCli handles the first (a.k.a "thin") round of Command Line Interface parsing.