def extend_options(command_class)
      allowed = @only & %i[command_options option]
      return if allowed.empty? || (allowed & @except).any?

      self.class.extend_options(command_class)
    end
def extend_options(command_class)
      allowed = @only & %i[command_options option]
      return if allowed.empty? || (allowed & @except).any?

      self.class.extend_options(command_class)
    end
Object