def get_command_class(command_name)
class_name = command_name.to_s.split('_').map(&:capitalize).join
begin
- return self.class.const_get("OSDN::CLI::Command::#{class_name}")
+ return OSDN::CLI::Command.const_get(class_name)
rescue NameError => e
logger.fatal "Invalid command name '#{command_name}'. Use 'help' to list commands."
exit