From 2b2e2c9a8046cc4bb4cfb37f647cdf47245fdb05 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 4 Jan 2022 15:52:12 -0600 Subject: [PATCH] fix(parser): Fix quoting in panic We ended up with an extra quotation mark that was left unmatched. Got a bit confused when I saw this. --- src/parse/matches/arg_matches.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse/matches/arg_matches.rs b/src/parse/matches/arg_matches.rs index 619bf5df0ff..fde3ac59f8b 100644 --- a/src/parse/matches/arg_matches.rs +++ b/src/parse/matches/arg_matches.rs @@ -1043,12 +1043,12 @@ impl ArgMatches { if *arg == Id::empty_hash() || self.valid_args.contains(arg) { } else if self.valid_subcommands.contains(arg) { panic!( - "Subcommand `'{:?}' used where an argument or group name was expected.", + "Subcommand `{:?}` used where an argument or group name was expected.", arg ); } else { panic!( - "`'{:?}' is not a name of an argument or a group.\n\ + "`{:?}` is not a name of an argument or a group.\n\ Make sure you're using the name of the argument itself \ and not the name of short or long flags.", arg