Skip to content

Commit

Permalink
Add after_help to watchtower --help command
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimGrznk authored and mvines committed Apr 17, 2020
1 parent b58338b commit 982e6c4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions watchtower/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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=<account>,TOKEN=<securityToken>,TO=<receivingNumber>,FROM=<sendingNumber>'")
.arg({
let arg = Arg::with_name("config_file")
.short("C")
Expand Down

0 comments on commit 982e6c4

Please sign in to comment.