diff options
| author | Eyal Posener <[email protected]> | 2017-05-20 22:29:12 +0300 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2017-05-20 22:29:12 +0300 |
| commit | 14dcbd6b21157407d501d08d8d2ee16e1027b564 (patch) | |
| tree | 4dfe7de2d7eab51b10da1f27d5af3bf1be572741 /cmd/cmd.go | |
| parent | 5ba73666ab38b2d2524b42bf3dc83c1449b55b30 (diff) | |
cmd: remove adding of flags from run
Diffstat (limited to 'cmd/cmd.go')
| -rw-r--r-- | cmd/cmd.go | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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") |
