| 
									
										
										
										
											2024-03-29 18:31:39 -07:00
										 |  |  | # typed: strong | 
					
						
							| 
									
										
										
										
											2019-04-19 15:38:03 +09:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-29 18:31:39 -07:00
										 |  |  | require "abstract_command" | 
					
						
							| 
									
										
										
										
											2018-06-05 23:19:18 -04:00
										 |  |  | require "help" | 
					
						
							| 
									
										
										
										
											2016-09-07 20:09:29 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-18 22:41:47 -05:00
										 |  |  | module Homebrew | 
					
						
							| 
									
										
										
										
											2024-03-29 18:31:39 -07:00
										 |  |  |   module Cmd | 
					
						
							|  |  |  |     class HelpCmd < AbstractCommand | 
					
						
							| 
									
										
										
										
											2024-04-08 13:35:25 +01:00
										 |  |  |       cmd_args do | 
					
						
							|  |  |  |         description <<~EOS | 
					
						
							|  |  |  |           Outputs the usage instructions for `brew` <command>. | 
					
						
							|  |  |  |           Equivalent to `brew --help` <command>. | 
					
						
							|  |  |  |         EOS | 
					
						
							|  |  |  |         named_args [:command] | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-29 18:31:39 -07:00
										 |  |  |       sig { override.void } | 
					
						
							|  |  |  |       def run | 
					
						
							|  |  |  |         Help.help | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							| 
									
										
										
										
											2016-04-03 20:17:01 +02:00
										 |  |  |   end | 
					
						
							| 
									
										
										
										
											2011-03-13 12:54:30 +00:00
										 |  |  | end |