Skip to content

Conversation

DannyBen
Copy link
Member

@DannyBen DannyBen commented Dec 30, 2022

Adds the ability to provide a color function for some elements in the usage text, by adding something like this to the settings.yml:

usage_colors:
  caption: bold
  command: green
  arg: blue
  flag: magenta
  environment_variable: cyan

The PR also adds an example called colors-usage that demonstrates its use.

Closes #310

@DannyBen DannyBen merged commit 6537143 into master Dec 30, 2022
@DannyBen DannyBen deleted the add/usage-colors branch December 30, 2022 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support setting color for commands
1 participant