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/max | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'bin/max') diff --git a/bin/max b/bin/max index 84585ee..ae38983 100755 --- a/bin/max +++ b/bin/max @@ -16,6 +16,29 @@ help() { -h, --help show this message Get the maximum number from the given values. + + + Examples: + + Get the maximum number from a list: + + $ min 5 3 9 9 4 + 9 + + Get the maximum number when negative numbers are given + + $ max -- -3 -5 + -3 + + Get the maximum number given a single number + + $ max 8 + 8 + + The maximum default number: + + $ max + 0 EOF } -- cgit v1.2.3