diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-03-31 14:53:50 -0400 |
|---|---|---|
| committer | anselor <anselor@gmail.com> | 2021-04-02 18:56:25 -0400 |
| commit | 5b9e99979e9b5c4b04d674bad3a4d156cec62c31 (patch) | |
| tree | 204fefd04983ae754c35ddd746df77a81496007e /docs/features | |
| parent | 9e62a0a11cd013761735529199ff8594693b3b4f (diff) | |
| download | cmd2-git-5b9e99979e9b5c4b04d674bad3a4d156cec62c31.tar.gz | |
Replaced some pexcept() calls with perror().
Converted some strings to f-strings.
Fixed some grammar in error messages and docs.
Increased code coverage.
Diffstat (limited to 'docs/features')
| -rw-r--r-- | docs/features/argument_processing.rst | 4 | ||||
| -rw-r--r-- | docs/features/hooks.rst | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/features/argument_processing.rst b/docs/features/argument_processing.rst index bcc68633..9a78d720 100644 --- a/docs/features/argument_processing.rst +++ b/docs/features/argument_processing.rst @@ -170,7 +170,7 @@ To add additional text to the end of the generated help message, use the ``epilo from cmd2 import with_argparser argparser = argparse.ArgumentParser(description='create an html tag', - epilog='This command can not generate tags with no content, like <br/>.') + epilog='This command cannot generate tags with no content, like <br/>.') argparser.add_argument('tag', help='tag') argparser.add_argument('content', nargs='+', help='content to surround with tag') @with_argparser(argparser) @@ -193,7 +193,7 @@ Which yields: optional arguments: -h, --help show this help message and exit - This command can not generate tags with no content, like <br/> + This command cannot generate tags with no content, like <br/> .. warning:: diff --git a/docs/features/hooks.rst b/docs/features/hooks.rst index acf9dcc4..881b4e7e 100644 --- a/docs/features/hooks.rst +++ b/docs/features/hooks.rst @@ -207,7 +207,7 @@ with the :data:`~cmd2.plugin.PostparsingData.stop` attribute set to ``True``: Precommand Hooks ---------------- -Precommand hooks can modify the user input, but can not request the application +Precommand hooks can modify the user input, but cannot request the application terminate. If your hook needs to be able to exit the application, you should implement it as a postparsing hook. |
