Skip to main content

verify

Function verify 

Source
pub fn verify<C: CommandFactory>()
Available on crate feature cli only.
Expand description

Check a CLI’s parser: Clap’s recommended Command::debug_assert, and that help and version stay on.

Call it from a unit test, so a mistake in the Clap types fails the test suite and not a user’s first run.

§Panics

Panics when Clap’s debug_assert finds an invalid command definition, or when the command disables -h/--help or -V/--version.