mirror of
				https://github.com/taigrr/yq
				synced 2025-01-18 04:53:17 -08: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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user