From 1715cbd5defc283f2d71bdb1545c33d0fa4aac72 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Tue, 17 Oct 2017 23:12:49 +0200 Subject: [PATCH] commands: drop http server flags from force-leave command --- command/forceleave/forceleave.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command/forceleave/forceleave.go b/command/forceleave/forceleave.go index fe917fa2b6..df9b947e33 100644 --- a/command/forceleave/forceleave.go +++ b/command/forceleave/forceleave.go @@ -25,8 +25,7 @@ func (c *cmd) init() { c.flags = flag.NewFlagSet("", flag.ContinueOnError) c.http = &flags.HTTPFlags{} flags.Merge(c.flags, c.http.ClientFlags()) - flags.Merge(c.flags, c.http.ServerFlags()) - c.help = flags.Usage(help, c.flags, c.http.ClientFlags(), c.http.ServerFlags()) + c.help = flags.Usage(help, c.flags, c.http.ClientFlags(), nil) } func (c *cmd) Run(args []string) int {