mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-29 01:22:10 +00:00
alertmanager should raise an error if unexpected arguments are present on the command line
This commit is contained in:
parent
1c13e773a7
commit
ca844915b3
@ -88,6 +88,10 @@ func main() {
|
||||
flag.Var(peers, "mesh.peer", "initial peers (may be repeated)")
|
||||
flag.Parse()
|
||||
|
||||
if len(flag.Args()) > 0 {
|
||||
log.Fatalln("Received unexpected and unparsed arguments: ", strings.Join(flag.Args(), ", "))
|
||||
}
|
||||
|
||||
if *showVersion {
|
||||
fmt.Fprintln(os.Stdout, version.Print("alertmanager"))
|
||||
os.Exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user