stop printing usage help when the server commands exit
This commit is contained in:
		| @@ -104,6 +104,9 @@ func NewAPIServerCommand() *cobra.Command { | |||||||
| for the api objects which include pods, services, replicationcontrollers, and | for the api objects which include pods, services, replicationcontrollers, and | ||||||
| others. The API Server services REST operations and provides the frontend to the | others. The API Server services REST operations and provides the frontend to the | ||||||
| cluster's shared state through which all other components interact.`, | cluster's shared state through which all other components interact.`, | ||||||
|  |  | ||||||
|  | 		// stop printing usage when the command errors | ||||||
|  | 		SilenceUsage: true, | ||||||
| 		RunE: func(cmd *cobra.Command, args []string) error { | 		RunE: func(cmd *cobra.Command, args []string) error { | ||||||
| 			verflag.PrintAndExitIfRequested() | 			verflag.PrintAndExitIfRequested() | ||||||
| 			utilflag.PrintFlags(cmd.Flags()) | 			utilflag.PrintFlags(cmd.Flags()) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 David Eads
					David Eads