From 14dcbd6b21157407d501d08d8d2ee16e1027b564 Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Sat, 20 May 2017 22:29:12 +0300 Subject: [PATCH] cmd: remove adding of flags from run --- cmd/cmd.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index 224279e..7137dee 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -31,13 +31,6 @@ const ( // this is used when the complete is not completing words, but to // install it or uninstall it. func (f *CLI) Run() bool { - - fs := flag.NewFlagSet(f.Name, 0) - // add flags and parse them in case they were not added and parsed - // by the main program - f.AddFlags(fs) - fs.Parse(os.Args[1:]) - err := f.validate() if err != nil { os.Stderr.WriteString(err.Error() + "\n")