Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #96 from metalmatze/fix-flags-required
Browse files Browse the repository at this point in the history
Fix flags with defaults that aren't required anymore
  • Loading branch information
metalmatze authored Jan 11, 2020
2 parents fd9c008 + 2f22387 commit 65ec8cd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/alertmanager-bot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func main() {
a.HelpFlag.Short('h')

a.Flag("alertmanager.url", "The URL that's used to connect to the alertmanager").
Required().
Envar("ALERTMANAGER_URL").
Default("http://localhost:9093/").
URLVar(&config.alertmanager)
Expand All @@ -87,7 +86,6 @@ func main() {
URLVar(&config.consul)

a.Flag("listen.addr", "The address the alertmanager-bot listens on for incoming webhooks").
Required().
Envar("LISTEN_ADDR").
Default("0.0.0.0:8080").
StringVar(&config.listenAddr)
Expand Down

0 comments on commit 65ec8cd

Please sign in to comment.