Skip to content
Myr

Unified help parameter after last pull.

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 d914ad6 · Browse files · 1 file+8 added−4 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+8 added−4 removed

  • other:+8 added−4 removed

1 file+8 added−4 removed

modified:click/decorators.py+8 added-4 removed
74 unmodified lines
75 params.reverse()76 del f.__click_params__77 except AttributeError:78 params = []79 help = attrs.get('help')80 if help is None:79 help = inspect.getdoc(f)80 if isinstance(help, bytes):81 help = help.decode('utf-8')82 attrs.setdefault('help', help)81 help = inspect.getdoc(f)82 if isinstance(help, bytes):83 help = help.decode('utf-8')84 else:85 help = inspect.cleandoc(help)86 attrs['help'] = help87 return cls(name=name or f.__name__.lower(),88 callback=f, params=params, **attrs)8990
203 unmodified lines