mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Make the -h flag deprecated.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
		
							parent
							
								
									fc5a4514fb
								
							
						
					
					
						commit
						9b2bb64a38
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -36,6 +36,9 @@ func NewCobraAdaptor(clientFlags *cliflags.ClientFlags) CobraAdaptor {
 | 
			
		|||
		volume.NewVolumeCommand(dockerCli),
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
	rootCmd.PersistentFlags().BoolP("help", "h", false, "Print usage")
 | 
			
		||||
	rootCmd.PersistentFlags().MarkShorthandDeprecated("help", "please use --help")
 | 
			
		||||
 | 
			
		||||
	return CobraAdaptor{
 | 
			
		||||
		rootCmd:   rootCmd,
 | 
			
		||||
		dockerCli: dockerCli,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue