Skip to content
Myr

add documentation example for epilog

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

authored by Dan Rowe · committed by David Lord · parent 5bdd954 · Browse files · 1 file+18 added−0 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+18 added−0 removed

  • other:+18 added−0 removed

1 file+18 added−0 removed

modified:docs/documentation.rst+18 added
207 unmodified lines
208.. click:run::209210 invoke(cli, prog_name='repo.py')211212Command Epilog Help213-------------------214215The help epilog is like the help string but it's printed at the end of the help216page after everything else. Useful for showing example command usages or217referencing additional help resources.218219.. click:example::220221 @click.command(epilog='Check out our docs at https://click.palletsprojects.com/ for more details')222 def init():223 """Initializes the repository."""224225And what it looks like:226227.. click:run::228229 invoke(init, prog_name='repo.py', args=['--help'])230231Help Parameter Customization232----------------------------233234.. versionadded:: 2.0
25 unmodified lines