Skip to content

Commit

Permalink
fix(parser): Fix quoting in panic
Browse files Browse the repository at this point in the history
We ended up with an extra quotation mark that was left unmatched.  Got a
bit confused when I saw this.
  • Loading branch information
epage committed Jan 4, 2022
1 parent 690da48 commit 2b2e2c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse/matches/arg_matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b2e2c9

Please sign in to comment.