aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/color18
1 files changed, 17 insertions, 1 deletions
diff --git a/bin/color b/bin/color
index 05972780..d03a2326 100755
--- a/bin/color
+++ b/bin/color
@@ -12,15 +12,31 @@ usage() {
help() {
cat <<-'EOF'
-
Options:
-c COLOR
-h, --help show this message
+ Print the given text with a color.
+
The available colors are:
EOF
list_colors | sed 's/^/ /'
+
+ cat <<-'EOF'
+
+ Examples:
+
+ Print "banana" in yellow:
+
+ $ color -c yellow 'banana'
+ banana
+
+ Print "grass" in green, with a newline:
+
+ $ color -c green 'grass\n'
+ grass
+ EOF
}