Skip to content

Commit f02146a

Browse files
Merge pull request #1759 from edsonarios/issue1733
Change regex in rich text in simple option in help text
2 parents fb31f44 + 34ba3ae commit f02146a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoftLayer/CLI/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class OptionHighlighter(RegexHighlighter):
2424
"""Provides highlighter regex for the Command help"""
2525
highlights = [
26-
r"(?P<switch>\-\w)", # single options like -v
26+
r"(?P<switch>^\-\w)", # single options like -v
2727
r"(?P<option>\-\-[\w\-]+)", # long options like --verbose
2828
r"(?P<default_option>\[[^\]]+\])", # anything between [], usually default options
2929

0 commit comments

Comments
 (0)