Usage error messages now go to StdErr

This commit is contained in:
Mike Farah 2020-06-11 10:14:33 +10:00
parent e90b00957b
commit 8c9c326342
2 changed files with 1 additions and 2 deletions

View File

@ -57,6 +57,7 @@ func readProperty(cmd *cobra.Command, args []string) error {
}
if errorReadingStream != nil {
cmd.SilenceUsage = true
return errorReadingStream
}
out := cmd.OutOrStdout()

View File

@ -55,7 +55,5 @@ func New() *cobra.Command {
createNewCmd(),
createMergeCmd(),
)
rootCmd.SetOutput(os.Stdout)
return rootCmd
}