bschaatsbergen / cidr

Simplifies IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision.
https://formulae.brew.sh/formula/cidr
MIT License
168 stars 9 forks source link

Add colours to `--help` #65

Closed bschaatsbergen closed 8 months ago

bschaatsbergen commented 8 months ago

We could prettify the output of --help by colouring the section titles.

cidr - CLI to perform various actions on CIDR ranges

Usage: **(give this a colour)**
  cidr [flags]
  cidr [command]

Available Commands: **(give this a colour)**
  contains    Checks whether an IP address belongs to a CIDR range
  count       Return the count of all distinct host addresses in a given CIDR range
  help        Help about any command
  overlaps    Checks if a CIDR range overlaps with another CIDR range

Flags: **(give this a colour)**
  -h, --help   help for cidr

Use "cidr [command] --help" for more information about a command.

Relates #74