 312fdaa892
			
		
	
	
		312fdaa892
		
	
	
	
	
		
			
			This implies that `--version` is treated in most places like a regular command, e.g. being suggested in shell completion. Also fix the help text that claimed output goes to standard error, while it actually goes to standard output.
		
			
				
	
	
		
			13 lines
		
	
	
		
			473 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			473 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| #:  * `--version`:
 | |
| #:    Print the version number of Homebrew to standard output and exit.
 | |
| 
 | |
| module Homebrew
 | |
|   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
 |