From c0ed55485e8db03673318f67dd06e7a04435c0f9 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 12 Aug 2022 18:46:42 -0300 Subject: bin/{min,max,clamp}: Add "Examples" section to help string --- bin/min | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'bin/min') diff --git a/bin/min b/bin/min index 7868623..715f4d1 100755 --- a/bin/min +++ b/bin/min @@ -15,7 +15,31 @@ help() { Options: -h, --help show this message + Get the minimun number from the given values. + + + Examples: + + Get the minimum number from a list: + + $ min 5 3 9 9 4 + 3 + + Get the minimum number when negative numbers are given + + $ min -- -3 -5 + -5 + + Get the minimum number given a single number + + $ min 8 + 8 + + The minimum default number: + + $ min + 0 EOF } -- cgit v1.2.3