summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-02-05 00:45:17 +0000
committerMaxime “pep” Buquet <pep@bouah.net>2019-02-05 00:45:17 +0000
commite5bc466b2751b2a2b3dfe5a3ef34e34cf0e79392 (patch)
treef8156faa7808aaf34c3c5030ba11d5bd2bf5c6f6
parentebc886d670c5df73d0ed55753562fe26cc2a2d11 (diff)
downloadpoezio-e5bc466b2751b2a2b3dfe5a3ef34e34cf0e79392.tar.gz
poezio-e5bc466b2751b2a2b3dfe5a3ef34e34cf0e79392.tar.bz2
poezio-e5bc466b2751b2a2b3dfe5a3ef34e34cf0e79392.tar.xz
poezio-e5bc466b2751b2a2b3dfe5a3ef34e34cf0e79392.zip
Fix wording in command_args_parser.quoted docstring
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/decorators.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/poezio/decorators.py b/poezio/decorators.py
index bf1c2ebe..4b5d0320 100644
--- a/poezio/decorators.py
+++ b/poezio/decorators.py
@@ -91,18 +91,18 @@ class CommandArgParser:
the numbers `mandatory` and `optional`.
If the string doesn’t contain at least `mandatory` arguments, we return
- None because the given arguments are invalid.
+ None because the given arguments are invalid.
If there are any remaining arguments after `mandatory` and `optional`
arguments have been found (and “ignore_trailing_arguments" is not True),
- we happen them to the last argument of the list.
+ we append them to the last argument of the list.
- An argument is a string (with or without whitespaces) between to quotes
+ An argument is a string (with or without whitespaces) between two quotes
("), or a whitespace separated word (if not inside quotes).
The argument `defaults` is a list of strings that are used when an
optional argument is missing. For example if we accept one optional
- argument, zero is available but we have one value in the `defaults`
+ argument and none is provided, but we have one value in the `defaults`
list, we use that string inplace. The `defaults` list can only
replace missing optional arguments, not mandatory ones. And it
should not contain more than `mandatory` values. Also you cannot