From 562fec2fa8b86508dd1250b92d41e129eda81862 Mon Sep 17 00:00:00 2001 From: linzhaoming Date: Sun, 17 Feb 2019 14:57:17 +0800 Subject: [PATCH] Update README.md Fix the comment: consistent with others --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e73ffee..6ae2808b 100644 --- a/README.md +++ b/README.md @@ -389,7 +389,7 @@ The following validators are built in: - `MinimumNArgs(int)` - the command will report an error if there are not at least N positional args. - `MaximumNArgs(int)` - the command will report an error if there are more than N positional args. - `ExactArgs(int)` - the command will report an error if there are not exactly N positional args. -- `ExactValidArgs(int)` = the command will report and error if there are not exactly N positional args OR if there are any positional args that are not in the `ValidArgs` field of `Command` +- `ExactValidArgs(int)` - the command will report an error if there are not exactly N positional args OR if there are any positional args that are not in the `ValidArgs` field of `Command` - `RangeArgs(min, max)` - the command will report an error if the number of args is not between the minimum and maximum number of expected args. An example of setting the custom validator: