 5c48226018
			
		
	
	
		5c48226018
		
			
		
	
	
	
	
		
			
			This allows an accurate manpage description of `brew help`. Also commit the various other required changes to completions and manpage.
		
			
				
	
	
		
			25 lines
		
	
	
		
			453 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			453 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # typed: strong
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| require "abstract_command"
 | |
| require "help"
 | |
| 
 | |
| module Homebrew
 | |
|   module Cmd
 | |
|     class HelpCmd < AbstractCommand
 | |
|       cmd_args do
 | |
|         description <<~EOS
 | |
|           Outputs the usage instructions for `brew` <command>.
 | |
|           Equivalent to `brew --help` <command>.
 | |
|         EOS
 | |
|         named_args [:command]
 | |
|       end
 | |
| 
 | |
|       sig { override.void }
 | |
|       def run
 | |
|         Help.help
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |