diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-03-16 23:48:37 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-03-16 23:48:37 -0400 |
commit | 28b7ec2ae2531366d41805b19700ca93677502b4 (patch) | |
tree | 06b15ebf206b4feda59254d6d3ae280b6bdd1bdd /cmd2/cmd2.py | |
parent | b61728ea7e47e2f2bbbb91e0a825c70275e476da (diff) | |
download | cmd2-git-28b7ec2ae2531366d41805b19700ca93677502b4.tar.gz |
Updated documentation
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index d0a86391..13278b44 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -199,7 +199,7 @@ def with_argparser_and_unknown_args(argparser: argparse.ArgumentParser, preserve :param preserve_quotes: if True, then arguments passed to argparse maintain their quotes :return: function that gets passed argparse-parsed args in a Namespace and a list of unknown argument strings A member called __statement__ is added to the Namespace to provide command functions access to the - Statement object. This can be useful when knowledge of the command line is needed. + Statement object. This can be useful if the command function needs to know the command line. """ import functools @@ -249,7 +249,7 @@ def with_argparser(argparser: argparse.ArgumentParser, :param preserve_quotes: if True, then arguments passed to argparse maintain their quotes :return: function that gets passed the argparse-parsed args in a Namespace A member called __statement__ is added to the Namespace to provide command functions access to the - Statement object. This can be useful when knowledge of the command line is needed. + Statement object. This can be useful if the command function needs to know the command line. """ import functools |