Friday, September 20, 2024 7:00:11 AM
> settings

Customize


Authenticate

> 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(name, type, **opts)
      end
    end
  end
end
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8