Merge pull request #1288 from r2d4/dedupe
Don't glog top level command error messagepull/1237/merge
commit
3ad0190d78
|
@ -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.
|
// 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.
|
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
||||||
func Execute() {
|
func Execute() {
|
||||||
if err := RootCmd.Execute(); err != nil {
|
_ = RootCmd.Execute()
|
||||||
glog.Exitln(err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle config values for flags used in external packages (e.g. glog)
|
// Handle config values for flags used in external packages (e.g. glog)
|
||||||
|
|
Loading…
Reference in New Issue