| 
									
										
										
										
											2016-04-08 16:28:43 +02:00
										 |  |  | #:  * `config`: | 
					
						
							|  |  |  | #:    Show Homebrew and system configuration useful for debugging. If you file | 
					
						
							|  |  |  | #:    a bug report, you will likely be asked for this information if you do not | 
					
						
							|  |  |  | #:    provide it. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-25 18:01:15 +01:00
										 |  |  | require "system_config" | 
					
						
							| 
									
										
										
										
											2019-01-20 21:29:19 +05:30
										 |  |  | require "cli_parser" | 
					
						
							| 
									
										
										
										
											2010-09-11 20:22:54 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-18 22:41:47 -05:00
										 |  |  | module Homebrew | 
					
						
							| 
									
										
										
										
											2016-09-26 01:44:51 +02:00
										 |  |  |   module_function | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-20 21:29:19 +05:30
										 |  |  |   def config_args | 
					
						
							|  |  |  |     Homebrew::CLI::Parser.new do | 
					
						
							|  |  |  |       usage_banner <<~EOS | 
					
						
							|  |  |  |         `config` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         Show Homebrew and system configuration useful for debugging. If you file | 
					
						
							|  |  |  |         a bug report, you will likely be asked for this information if you do not | 
					
						
							|  |  |  |         provide it. | 
					
						
							|  |  |  |       EOS | 
					
						
							|  |  |  |       switch :verbose | 
					
						
							|  |  |  |       switch :debug | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-04-26 23:31:39 -07:00
										 |  |  |   def config | 
					
						
							| 
									
										
										
										
											2019-01-20 21:29:19 +05:30
										 |  |  |     config_args.parse | 
					
						
							|  |  |  |     raise UsageError unless args.remaining.empty? | 
					
						
							| 
									
										
										
										
											2016-04-25 18:01:15 +01:00
										 |  |  |     SystemConfig.dump_verbose_config | 
					
						
							| 
									
										
										
										
											2010-09-11 20:22:54 +01:00
										 |  |  |   end | 
					
						
							|  |  |  | end |