Skip to content
Myr

Document show_envvar in Help Pages (#3166)

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

authored by Rowlando13 · committed by GitHub · parents f4a1bd4, e4c47d5 · Browse files · 1 file+16 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+16 added−0 removed

  • other:+16 added−0 removed

1 file+16 added−0 removed

modified:docs/documentation.md+16 added
143 unmodified lines
144.. click:run::145 invoke(dots, args=['--help'])146```147148## Showing Environment Variables149150To control the appearance of environment variables pass `show_envvar`.151152```{eval-rst}153.. click:example::154155 @click.command()156 @click.option('--username', envvar='USERNAME', show_envvar=True)157 def greet(username):158 click.echo(f'Hello {username}!')159160.. click:run::161 invoke(greet, args=['--help'])162```163164## Click's Wrapping Behavior165166Click's default wrapping ignores single new lines and rewraps the text based on the width of the terminal to a maximum of 80 characters by default, but this can be modified with {attr}`~Context.max_content_width`. In the example notice how the second grouping of three lines is rewrapped into a single paragraph.167
126 unmodified lines