cmd.SilenceUsage

This commit is contained in:
Ethan Buchman
2017-04-21 12:34:11 -04:00
parent c292d54e47
commit 04f79f3ad2
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -38,6 +38,7 @@ func BasecoinRoot(rootDir string) string {
func ExecuteWithDebug(RootCmd *cobra.Command) {
var debug bool
RootCmd.SilenceUsage = true
RootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "enables stack trace error messages")
//note that Execute() prints the error if encountered, so no need to reprint the error,