# File lib/config_parser.rb, line 23 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) self.send(@command.to_sym) else @args << "-h" puts "Valid command required: \n\n" parse end end