Wednesday, July 15, 2026 4:58:01 AM
> base.rb
# frozen_string_literal: true

module ESM
  module Command
    class Base
      attr_writer :limit_to, :requires, :event

      def self.argument(name, type = nil, **opts)
        # This removes the need to provide a description for test commands
        if module_parent.to_s.demodulize == "Test"
          opts[:description] = "Defaulted testing description"
        end

        super
      end
    end
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7