aboutsummaryrefslogtreecommitdiff
path: root/bin/max
diff options
context:
space:
mode:
Diffstat (limited to 'bin/max')
-rwxr-xr-xbin/max23
1 files changed, 23 insertions, 0 deletions
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
}