Skip to content

default=lambda and show_default behavior #547

@jcejohnson

Description

@jcejohnson

This:
@click.option('--username', callback=set_option_value, default=lambda: get_option_default('username'), show_default=True)

gives this --help output:
--username TEXT [default: <function <lambda> at 0x104858a28>]

If that is the intended behavior, is there an option to have it invoke the function during --help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions