Skip to content

Commit

Permalink
Merge pull request #1759 from edsonarios/issue1733
Browse files Browse the repository at this point in the history
Change regex in rich text in simple option in help text
  • Loading branch information
allmightyspiff authored Oct 3, 2022
2 parents fb31f44 + 34ba3ae commit f02146a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoftLayer/CLI/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class OptionHighlighter(RegexHighlighter):
"""Provides highlighter regex for the Command help"""
highlights = [
r"(?P<switch>\-\w)", # single options like -v
r"(?P<switch>^\-\w)", # single options like -v
r"(?P<option>\-\-[\w\-]+)", # long options like --verbose
r"(?P<default_option>\[[^\]]+\])", # anything between [], usually default options

Expand Down

0 comments on commit f02146a

Please sign in to comment.