Method: Traject::CommandLine#arg_check!

Defined in:
lib/traject/command_line.rb

#arg_check!Object



181
182
183
184
185
186
187
188
189
# File 'lib/traject/command_line.rb', line 181

def arg_check!
  if options[:command] == "process" && (options[:conf].nil? || options[:conf].length == 0)
    self.console.puts "Error: Missing required configuration file"
    self.console.puts "Exiting..."
    self.console.puts
    self.console.puts self.slop.help
    exit 2
  end
end