From 319c77c7553f47202441fcfb0325a2c11414beaa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Feb 2019 13:32:29 +0100 Subject: [PATCH] Update help output (fixes #173) --- homeassistant_cli/cli.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/homeassistant_cli/cli.py b/homeassistant_cli/cli.py index 6899137..760fa96 100644 --- a/homeassistant_cli/cli.py +++ b/homeassistant_cli/cli.py @@ -105,7 +105,8 @@ 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', @@ -113,13 +114,15 @@ def _default_token() -> Optional[str]: @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(