eris-boiler icon indicating copy to clipboard operation
eris-boiler copied to clipboard

Parameter improvements

Open alex-taxiera opened this issue 3 years ago • 0 comments

Right now command parameters are just lame strings you can pass to display in the help command.

Params probably need to be expanded to objects with a few props such as:

  • name
  • description
  • mandatory (important!)
  • etc?

These can then be used in the help command.

What's mandatory all about?

This will help us do command parameter length validation, need to be careful with it though. It should be illegal to have any mandatory params after an optional one.

When checking required parameter length, we only need to care about the number of mandatory params, this could be set on the Command itself within the constructor (as could the previously mentioned validation).

alex-taxiera avatar Sep 08 '20 20:09 alex-taxiera