summaryrefslogtreecommitdiff
path: root/cmd2/parsing.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-03-31 14:53:50 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-03-31 15:34:37 -0400
commit06f05261945d706b668c8021a7ae6f8dcd15b9ea (patch)
tree26839ea0e5e4527a795336e6bdbec3a3fa4730b7 /cmd2/parsing.py
parent5165edec890575682f345fc42f5a53e10ed575b9 (diff)
downloadcmd2-git-error_cleanup.tar.gz
Replaced some pexcept() calls with perror().error_cleanup
Converted some strings to f-strings. Fixed some grammar in error messages and docs. Increased code coverage.
Diffstat (limited to 'cmd2/parsing.py')
-rwxr-xr-xcmd2/parsing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py
index 3dff2689..db5dbd92 100755
--- a/cmd2/parsing.py
+++ b/cmd2/parsing.py
@@ -296,7 +296,7 @@ class StatementParser:
def is_valid_command(self, word: str, *, is_subcommand: bool = False) -> Tuple[bool, str]:
"""Determine whether a word is a valid name for a command.
- Commands can not include redirection characters, whitespace,
+ Commands cannot include redirection characters, whitespace,
or termination characters. They also cannot start with a
shortcut.