summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-25 10:17:52 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-25 10:17:52 -0500
commit3d488c72e833bfa0630a250c17da0a2975c7d2a5 (patch)
tree471801da644e2e029c72e98e896285fb34013b4c /cmd2
parentb74b272c478ca8c504d2fa6e1613b28e09eb114f (diff)
downloadcmd2-git-3d488c72e833bfa0630a250c17da0a2975c7d2a5.tar.gz
Removed duplicate word and capitalized two comment sentences
Diffstat (limited to 'cmd2')
-rw-r--r--cmd2/ansi.py2
-rw-r--r--cmd2/argparse_custom.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py
index 91e539f8..ceb135ec 100644
--- a/cmd2/ansi.py
+++ b/cmd2/ansi.py
@@ -32,7 +32,7 @@ Constant for ``cmd2.ansi.allow_style`` to indicate ANSI style sequences should
always be output.
"""
-# Controls when ANSI style style sequences are allowed in output
+# Controls when ANSI style sequences are allowed in output
allow_style = STYLE_TERMINAL
"""When using outside of a cmd2 app, set this variable to one of:
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index 02e23f17..d6833673 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -92,7 +92,7 @@ path_complete, delimiter_complete)
Example::
- # this adds file-path completion to an argument
+ # This adds file-path completion to an argument
parser.add_argument('-o', '--options', completer_method=cmd2.Cmd.path_complete)
@@ -101,7 +101,7 @@ path_complete, delimiter_complete)
Example::
- # this says to call path_complete with a preset value for its path_filter argument.
+ # This says to call path_complete with a preset value for its path_filter argument
completer_method = functools.partial(path_complete,
path_filter=lambda path: os.path.isdir(path))
parser.add_argument('-o', '--options', choices_method=completer_method)