Skip to content

App

main(name='World')

Say hello to the given name.

Parameters:

Name Type Description Default
name str

the name to be greeted

'World'
Source code in project/app.py
 4
 5
 6
 7
 8
 9
10
11
12
13
@command(context_settings={"help_option_names": ["-h", "--help"]}, help="Say hello")
@option("-n", "--name", default="World", help="Name", show_default=True)
def main(name: str = "World"):
    """
    Say hello to the given name.

    Args:
      name: the name to be greeted
    """
    print(f"Hello {name}!")