Correct formatting on --help

This commit is contained in:
Darren 'Tadgy' Austin 2023-11-04 22:12:22 +00:00
commit 8e4b8360c1

View file

@ -32,16 +32,16 @@ show_help() {
is: $CONFIG_API_URL. is: $CONFIG_API_URL.
Quote <url> if it contains shell special chars. Quote <url> if it contains shell special chars.
-c, --callback <url> A URL which is accessed by API server when the -c, --callback <url> A URL which is accessed by API server when the
user acknowledges the alert. This option is user acknowledges the alert. This option is
only used in priority 2 alerts. only used in priority 2 alerts.
Quote <url> if it contains shell special chars. Quote <url> if it contains shell special chars.
-d, --devices <devices> A comma seperated list of the devices to receive -d, --devices <devices> A comma seperated list of the devices to receive
the alert. Default is to send to all devices. the alert. Default is to send to all devices.
-e, --expiry <seconds> Set the expiration time for alerts sent with -e, --expiry <seconds> Set the expiration time for alerts sent with
priority 2. Default is 3600 (1 hour). The priority 2. Default is 3600 (1 hour). The
maximum expiry time is 10800 (3 hours). maximum expiry time is 10800 (3 hours).
--examples Show extended example usage of this program. --examples Show extended example usage of this program.
-h, --help Show this help page. -h, --help Show this help page.
-m, --message <text> The plain text message to send. -m, --message <text> The plain text message to send.
Quote <text> if it contains spaces. Quote <text> if it contains spaces.
This option or -M is required if a message is This option or -M is required if a message is
@ -118,9 +118,9 @@ show_help() {
key is specified, that account's configuration key is specified, that account's configuration
will be used for the alerts. If a comma will be used for the alerts. If a comma
separated list (maximum 50) of user keys is separated list (maximum 50) of user keys is
given, the alert is sent only to those users. given, the alert is sent only to those users.
This option is required if not available from a This option is required if not available from a
config file. config file.
-U, --url <url> Set the URL to send with the alert. -U, --url <url> Set the URL to send with the alert.
Quote <url> if it contains shell special chars. Quote <url> if it contains shell special chars.
--url-title <text> The title of the URL given with -U. Ignored --url-title <text> The title of the URL given with -U. Ignored