Merge pull request #1288 from r2d4/dedupe

Don't glog top level command error message
pull/1237/merge
Matt Rickard 2017-03-28 21:09:18 -07:00 committed by GitHub
commit 3ad0190d78
1 changed files with 1 additions and 3 deletions

View File

@ -111,9 +111,7 @@ Please use --v=3 to show libmachine logs, and --v=7 for debug level libmachine l
// Execute adds all child commands to the root command sets flags appropriately.
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
if err := RootCmd.Execute(); err != nil {
glog.Exitln(err)
}
_ = RootCmd.Execute()
}
// Handle config values for flags used in external packages (e.g. glog)