diff options
-rw-r--r-- | cmd2/ansi.py | 2 | ||||
-rw-r--r-- | cmd2/argparse_custom.py | 4 |
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) |