Skip to content
Myr

Fixed error with missing params in MissingParameter. This fixes #469

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent cc6fec2 · Browse files · 2 files+8 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−6 removed

  • other:+8 added−6 removed

2 files+8 added−6 removed

modified:click/exceptions.py+7 added-6 removed
114 unmodified lines
115 if param_type is None and self.param is not None:116 param_type = self.param.param_type_name117118 msg = self.message119 if self.param is not None:119 msg_extra = self.param.type.get_missing_message(self.param)120 if msg_extra:121 if msg:122 msg += '. ' + msg_extra123 else:124 msg = msg_extra120 msg_extra = self.param.type.get_missing_message(self.param)121 if msg_extra:122 if msg:123 msg += '. ' + msg_extra124 else:125 msg = msg_extra126127 return 'Missing %s%s%s%s' % (128 param_type,129 param_hint and ' %s' % param_hint or '',
72 unmodified lines
modified:CHANGES+1 added
8 unmodified lines
9(bugfix release, release date to be decided)1011- Resolved an issue with invisible progress bars no longer rendering.12- Disable chain commands with subcommands as they were inherently broken.13- Fix `MissingParameter` not working without parameters passed.1415Version 6.016-----------17
291 unmodified lines