From 179b07388abbc0d3bb29404e48ff027d4959721b Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 18 Oct 2023 19:49:03 -0400 Subject: [PATCH] Add a test for verifying the clap CLI. --- src/cli/parameters.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cli/parameters.rs b/src/cli/parameters.rs index b96dc27..008a384 100644 --- a/src/cli/parameters.rs +++ b/src/cli/parameters.rs @@ -45,3 +45,14 @@ pub(crate) struct AddPostArgs { #[arg(short, long)] pub(crate) config: PathBuf, } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn verify_cli() { + use clap::CommandFactory; + Cli::command().debug_assert() + } +}