Skip to content
Myr

Fixed a bug with the version flag introduced last commit.

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 7d0ded6 · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/decorators.py+1 added-1 removed
222 unmodified lines
223 prog_name = attrs.pop('prog_name', None)224 message = attrs.pop('message', '%(prog)s, version %(version)s')225226 def callback(ctx, param, value):227 if value or ctx.resilient_parsing:227 if not value or ctx.resilient_parsing:228 return229 prog = prog_name230 if prog is None:231 prog = ctx.find_root().info_name
56 unmodified lines