summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-12-19 17:00:29 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-12-19 17:00:29 -0500
commitb0e5aabad9c902ee5d664bf58885245060114f61 (patch)
treedaf52ea8ffc62dc3eff706109c9d21ac9b69e197 /cmd2/argparse_custom.py
parent1a26c0254b2c2834998b8a28f04e8aedc08c587f (diff)
downloadcmd2-git-b0e5aabad9c902ee5d664bf58885245060114f61.tar.gz
Renamed ansi_safe_wcswidth() to style_aware_wcswidth()
Renamed ansi_aware_write() to style_aware_write()
Diffstat (limited to 'cmd2/argparse_custom.py')
-rw-r--r--cmd2/argparse_custom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index 51c3375e..f735498d 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -802,11 +802,11 @@ class Cmd2ArgumentParser(argparse.ArgumentParser):
return formatter.format_help() + '\n'
def _print_message(self, message, file=None):
- # Override _print_message to use ansi_aware_write() since we use ANSI escape characters to support color
+ # Override _print_message to use style_aware_write() since we use ANSI escape characters to support color
if message:
if file is None:
file = sys.stderr
- ansi.ansi_aware_write(file, message)
+ ansi.style_aware_write(file, message)
# The default ArgumentParser class for a cmd2 app