mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
Usage error messages now go to StdErr
This commit is contained in:
parent
e90b00957b
commit
8c9c326342
@ -57,6 +57,7 @@ func readProperty(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
if errorReadingStream != nil {
|
||||
cmd.SilenceUsage = true
|
||||
return errorReadingStream
|
||||
}
|
||||
out := cmd.OutOrStdout()
|
||||
|
@ -55,7 +55,5 @@ func New() *cobra.Command {
|
||||
createNewCmd(),
|
||||
createMergeCmd(),
|
||||
)
|
||||
rootCmd.SetOutput(os.Stdout)
|
||||
|
||||
return rootCmd
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user