Update hass help output (#21465)

This commit is contained in:
Joakim Sørensen 2022-02-03 21:21:53 +01:00 committed by GitHub
parent 9565d350bd
commit a9611e611e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,10 +8,9 @@ The command-line part of Home Assistant is `hass`.
```bash ```bash
$ hass -h $ hass -h
usage: hass [-h] [--version] [-c path_to_config_dir] [--safe-mode] [--debug] usage: hass [-h] [--version] [-c path_to_config_dir] [--safe-mode]
[--open-ui] [--skip-pip] [-v] [--pid-file path_to_pid_file] [--debug] [--open-ui] [--skip-pip] [-v] [--log-rotate-days LOG_ROTATE_DAYS]
[--log-rotate-days LOG_ROTATE_DAYS] [--log-file LOG_FILE] [--log-file LOG_FILE] [--log-no-color] [--script ...] [--ignore-os-check]
[--log-no-color] [--runner] [--script ...] [--daemon]
Home Assistant: Observe, Control, Automate. Home Assistant: Observe, Control, Automate.
@ -19,22 +18,18 @@ optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
--version show program's version number and exit --version show program's version number and exit
-c path_to_config_dir, --config path_to_config_dir -c path_to_config_dir, --config path_to_config_dir
Directory that contains the Home Assistant Directory that contains the Home Assistant configuration
configuration
--safe-mode Start Home Assistant in safe mode --safe-mode Start Home Assistant in safe mode
--debug Start Home Assistant in debug mode --debug Start Home Assistant in debug mode
--open-ui Open the webinterface in a browser --open-ui Open the webinterface in a browser
--skip-pip Skips pip install of required packages on startup --skip-pip Skips pip install of required packages on startup
-v, --verbose Enable verbose logging to file. -v, --verbose Enable verbose logging to file.
--pid-file path_to_pid_file
Path to PID file useful for running as daemon
--log-rotate-days LOG_ROTATE_DAYS --log-rotate-days LOG_ROTATE_DAYS
Enables daily log rotation and keeps up to the Enables daily log rotation and keeps up to the specified days
specified days --log-file LOG_FILE Log file to write to. If not set, CONFIG/home-assistant.log is used
--log-file LOG_FILE Log file to write to. If not set, CONFIG/home-
assistant.log is used
--log-no-color Disable color logs --log-no-color Disable color logs
--runner On restart exit with code 100
--script ... Run one of the embedded scripts --script ... Run one of the embedded scripts
--daemon Run Home Assistant as daemon --ignore-os-check Skips validation of operating system
If restart is requested, exits with code 100
``` ```