# File lib/aeolus_cli/command/config_parser.rb, line 32 def process # Check for command, then call appropriate Optionparser and initiate # call to that class. @command = @args.shift # Eventually get the config file from user dir if it exists. # File.expand_path("~") if COMMANDS.include?(@command) opts = self.send((@command + "Options").to_sym) if @args.include?('-h') || @args.include?('--help') puts opts else parse(opts) begin self.send(@command.to_sym) rescue ArgumentError => e puts "Warning, #{e.message}" puts opts exit(1) end end else puts generalOptions exit(1) end end