diff --git a/clients/native/src/commands/mod.rs b/clients/native/src/commands/mod.rs index 23dd8063d8..c63ada0383 100644 --- a/clients/native/src/commands/mod.rs +++ b/clients/native/src/commands/mod.rs @@ -152,3 +152,14 @@ pub(crate) fn override_config(mut config: Config, args: OverrideConfig) -> Confi config } + +#[cfg(test)] +mod tests { + use super::*; + use clap::CommandFactory; + + #[test] + fn verify_cli() { + Cli::command().debug_assert(); + } +} diff --git a/clients/socks5/src/commands/mod.rs b/clients/socks5/src/commands/mod.rs index f630d170ac..ea9d5da052 100644 --- a/clients/socks5/src/commands/mod.rs +++ b/clients/socks5/src/commands/mod.rs @@ -147,3 +147,14 @@ pub(crate) fn override_config(mut config: Config, args: OverrideConfig) -> Confi config } + +#[cfg(test)] +mod tests { + use super::*; + use clap::CommandFactory; + + #[test] + fn verify_cli() { + Cli::command().debug_assert(); + } +} diff --git a/gateway/src/main.rs b/gateway/src/main.rs index 23ecb090f7..a7ea4ff1da 100644 --- a/gateway/src/main.rs +++ b/gateway/src/main.rs @@ -107,3 +107,17 @@ fn setup_logging() { .filter_module("tokio_tungstenite", log::LevelFilter::Warn) .init(); } + +#[cfg(test)] +mod tests { + use super::*; + use clap::CommandFactory; + + #[test] + fn verify_cli() { + LONG_VERSION + .set(long_version()) + .expect("Failed to set long about text"); + Cli::command().debug_assert(); + } +} diff --git a/mixnode/src/main.rs b/mixnode/src/main.rs index 651c134e81..44637eace1 100644 --- a/mixnode/src/main.rs +++ b/mixnode/src/main.rs @@ -106,3 +106,14 @@ fn setup_logging() { .filter_module("want", log::LevelFilter::Warn) .init(); } + +#[cfg(test)] +mod tests { + use super::*; + use clap::CommandFactory; + + #[test] + fn verify_cli() { + Cli::command().debug_assert(); + } +}