| 
									
										
										
										
											2016-04-19 03:04:49 +02:00
										 |  |  | #:  * `--version`: | 
					
						
							|  |  |  | #:    Print the version number of Homebrew to standard output and exit. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module Homebrew | 
					
						
							| 
									
										
										
										
											2016-09-26 01:44:51 +02:00
										 |  |  |   module_function | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-19 03:04:49 +02:00
										 |  |  |   def __version | 
					
						
							|  |  |  |     # As a special case, `--version` is implemented directly in `brew.rb`. This | 
					
						
							|  |  |  |     # file merely serves as a container for the documentation. It also catches | 
					
						
							|  |  |  |     # the case where running `brew --version` with additional arguments would | 
					
						
							|  |  |  |     # produce a rather cryptic message about a non-existent `--version` command. | 
					
						
							|  |  |  |     raise UsageError | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |