cmd: remove adding of flags from run

This commit is contained in:
Eyal Posener 2017-05-20 22:29:12 +03:00
parent 5ba73666ab
commit 14dcbd6b21
1 changed files with 0 additions and 7 deletions

View File

@ -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")