Method: Traject::CommandLine#parse_options
- Defined in:
- lib/traject/command_line.rb
#parse_options(argv) ⇒ Object
271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/traject/command_line.rb', line 271 def (argv) begin self.slop.parse!(argv) rescue Slop::Error => e self.console.puts "Error: #{e.message}" self.console.puts "Exiting..." self.console.puts self.console.puts slop.help exit 1 end return self.slop.to_hash end |