Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow options for ModBot commands
Up to now using a word in a ModBot reason argument which started with a hypen would ModBot not to process the command, as its argparse parser would consider that word as an not existing option. As we don't use options and only use arguments for ModBot commands, this disables option detection for the argparse parser. While this isn't officially supported by argparse, using a list with `None` as only item for the prefix characters, which are supposed to be a string instead of a list, does achieve exactly that.
- Loading branch information