From e02644b9c25ec2196d846ae216fff39168549aac Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 27 Apr 2023 04:12:22 -0500 Subject: [PATCH] fix(usage): Provide more context in panic --- clap_builder/src/output/usage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clap_builder/src/output/usage.rs b/clap_builder/src/output/usage.rs index dd99c63c7b7..87bb945283d 100644 --- a/clap_builder/src/output/usage.rs +++ b/clap_builder/src/output/usage.rs @@ -439,7 +439,7 @@ impl<'cmd> Usage<'cmd> { required_groups.insert(elem); required_groups_members.extend(group_members); } else { - debug_assert!(self.cmd.find(req).is_some()); + debug_assert!(self.cmd.find(req).is_some(), "`{req}` must exist"); } }