From 982e6c49167d8a84aa7eac0b9ea1f57fe268133a Mon Sep 17 00:00:00 2001 From: Vadim Grozinok Date: Thu, 16 Apr 2020 10:40:53 +0300 Subject: [PATCH] Add after_help to watchtower --help command --- watchtower/src/main.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/watchtower/src/main.rs b/watchtower/src/main.rs index bc96edfbf2..29f4a70b42 100644 --- a/watchtower/src/main.rs +++ b/watchtower/src/main.rs @@ -28,6 +28,23 @@ fn get_config() -> Config { let matches = App::new(crate_name!()) .about(crate_description!()) .version(solana_clap_utils::version!()) + .after_help("ADDITIONAL HELP: + To receive a Slack, Discord and/or Telegram notification on sanity failure, + define environment variables before running `solana-watchtower`: + + export SLACK_WEBHOOK=... + export DISCORD_WEBHOOK=... + + Telegram requires the following two variables: + + export TELEGRAM_BOT_TOKEN=... + export TELEGRAM_CHAT_ID=... + + To receive a Twilio SMS notification on failure, having a Twilio account, + and a sending number owned by that account, + define environment variable before running `solana-watchtower`: + + export TWILIO_CONFIG='ACCOUNT=,TOKEN=,TO=,FROM='") .arg({ let arg = Arg::with_name("config_file") .short("C")