aboutsummaryrefslogtreecommitdiff
path: root/bin/color
diff options
context:
space:
mode:
Diffstat (limited to 'bin/color')
-rwxr-xr-xbin/color10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/color b/bin/color
index 240da87..a416079 100755
--- a/bin/color
+++ b/bin/color
@@ -13,19 +13,24 @@ usage() {
help() {
cat <<-'EOF'
+
Options:
- -c COLOR
+ -c COLOR color name
-h, --help show this message
+ TEXT literal string to be coloured
+
- Print the given text with a color.
+ Print TEXT using COLOR.
The available colors are:
EOF
+
list_colors | sed 's/^/ /'
cat <<-'EOF'
+
Examples:
Print "banana" in yellow:
@@ -33,6 +38,7 @@ help() {
$ color -c yellow 'banana'
banana
+
Print "grass" in green, with a newline:
$ color -c green 'grass\n'