From 9a3a2e87235098d67072848589764e7d25832bf1 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 12 Aug 2022 18:54:53 -0300 Subject: bin/color: Add "Examples" section to help string --- bin/color | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/bin/color b/bin/color index 0597278..d03a232 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 } -- cgit v1.2.3