Skip to content

Commit

Permalink
Update help output (fixes #173)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Feb 13, 2019
1 parent 8bf2b3b commit 319c77c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions homeassistant_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,24 @@ def _default_token() -> Optional[str]:
@click.option(
'--server',
'-s',
help='The server URL or `auto` for automatic detection',
help='The server URL or `auto` for automatic detection. Can also be set '
'with he environment variable HASS_SERVER.',
default="auto",
show_default=True,
envvar='HASS_SERVER',
)
@click.option(
'--token',
default=_default_token,
help='The Bearer token for Home Assistant instance.',
help='The Bearer token for Home Assistant instance. Can also be set with '
'the environment variable HASS_TOKEN.',
envvar='HASS_TOKEN',
)
@click.option(
'--password',
default=None, # type: ignore
help='The API password for Home Assistant instance.',
help='The API password for Home Assistant instance. Can also be set with '
'the environment variable HASS_PASSWORD.',
envvar='HASS_PASSWORD',
)
@click.option(
Expand Down

0 comments on commit 319c77c

Please sign in to comment.