diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-13 14:06:57 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-13 14:06:57 -0400 |
commit | f659da34769b1721de7888cc2f1b5473eb88df94 (patch) | |
tree | 07d311c6913491624cc8cfc29b1a556d0812fe58 /cmd2/argparse_completer.py | |
parent | 8e90658aac568ca5948d99a3103a5c8ae08f71a5 (diff) | |
download | cmd2-git-f659da34769b1721de7888cc2f1b5473eb88df94.tar.gz |
Reverted making constant values for colors. This will be done on a future ticket.
Diffstat (limited to 'cmd2/argparse_completer.py')
-rw-r--r-- | cmd2/argparse_completer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/argparse_completer.py b/cmd2/argparse_completer.py index 60583ae2..6b3f5298 100644 --- a/cmd2/argparse_completer.py +++ b/cmd2/argparse_completer.py @@ -66,7 +66,7 @@ import sys from argparse import ZERO_OR_MORE, ONE_OR_MORE, ArgumentError, _, _get_action_name, SUPPRESS from typing import List, Dict, Tuple, Callable, Union -from . import constants +from colorama import Fore from .rl_utils import rl_force_redisplay from .utils import ansi_safe_wcswidth @@ -996,7 +996,7 @@ class ACArgumentParser(argparse.ArgumentParser): linum += 1 self.print_usage(sys.stderr) - self.exit(2, constants.ERROR_COLOR + '{}\n\n'.format(formatted_message) + constants.RESET_COLOR) + self.exit(2, Fore.LIGHTRED_EX + '{}\n\n'.format(formatted_message) + Fore.RESET) def format_help(self) -> str: """Copy of format_help() from argparse.ArgumentParser with tweaks to separately display required parameters""" |