Skip to content
Myr

Merge branch '4.x-maintenance'

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 · parents b5466bd, 046c1d7 · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/options.rst+3 added-3 removed
147 unmodified lines
148Example:149150.. click:example::151152 import os152 import sys153154 @click.command()155 @click.option('--shout/--no-shout', default=False)156 def info(shout):
13 unmodified lines
170manually inform Click that something is a flag:171172.. click:example::173174 import os174 import sys175176 @click.command()177 @click.option('--shout', is_flag=True)178 def info(shout):
34 unmodified lines
213the default.214215.. click:example::216217 import os217 import sys218219 @click.command()220 @click.option('--upper', 'transformation', flag_value='upper',221 default=True)
430 unmodified lines