Skip to content

Commit bc1157d

Browse files
authored
Merge branch 'main' into feat/annotated-argparse
2 parents b6a9832 + bbd689f commit bc1157d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/custom_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
from cmd2 import (
1010
Cmd2ArgumentParser,
11+
Cmd2Style,
1112
cmd2,
1213
set_default_argument_parser_type,
13-
styles,
1414
stylize,
1515
)
1616

@@ -38,7 +38,7 @@ def error(self, message: str) -> NoReturn:
3838
# Format errors with warning style
3939
formatted_message = stylize(
4040
formatted_message,
41-
style=styles.WARNING,
41+
style=Cmd2Style.WARNING,
4242
)
4343
self.exit(2, f"{formatted_message}\n\n")
4444

0 commit comments

Comments
 (0)