Skip to content

Commit 34ba3ae

Browse files
committed
Change regex in rich text in simple option in help text
1 parent fb31f44 commit 34ba3ae

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)