Open ylt opened 9 years ago
The argument parser has been implemented to be flexible and has options in order to adjust the parsing. https://github.com/WritheM/Wallace/blob/28e450aa281d11c9f79eed1457acb9748c3a6056/coreplugins/plug/PlugMessage.js#L18-L100
As part of the latest changes there is now a decorator for commands, which allows them to register the minimum user rank (and potentially other things), so this could allow for specifying options for the argument parser.
@CommandHandler("unban", {rank: "bouncer", argparser: { users: false }})
The argument parser has been implemented to be flexible and has options in order to adjust the parsing. https://github.com/WritheM/Wallace/blob/28e450aa281d11c9f79eed1457acb9748c3a6056/coreplugins/plug/PlugMessage.js#L18-L100
As part of the latest changes there is now a decorator for commands, which allows them to register the minimum user rank (and potentially other things), so this could allow for specifying options for the argument parser.