Skip to content

Commit

Permalink
Allow translating argument error messages (#17169)
Browse files Browse the repository at this point in the history
  • Loading branch information
DjMorgul authored May 5, 2022
1 parent a918589 commit b885b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def __str__(self):
if self.argument_name is None:
format = '%(message)s'
else:
format = 'argument %(argument_name)s: %(message)s'
format = _('argument %(argument_name)s: %(message)s')
return format % dict(message=self.message,
argument_name=self.argument_name)

Expand Down

0 comments on commit b885b8f

Please sign in to comment.