aboutsummaryrefslogtreecommitdiff
path: root/bin/min
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-08-12 18:46:42 -0300
committerEuAndreh <eu@euandre.org>2022-08-12 18:46:42 -0300
commitc0ed55485e8db03673318f67dd06e7a04435c0f9 (patch)
tree932fc598a77c8c0fd39cfc17242ea3f970e6c5d8 /bin/min
parentetc/git/ignore: Always exclude tmp/ directory (diff)
downloaddotfiles-c0ed55485e8db03673318f67dd06e7a04435c0f9.tar.gz
dotfiles-c0ed55485e8db03673318f67dd06e7a04435c0f9.tar.xz
bin/{min,max,clamp}: Add "Examples" section to help string
Diffstat (limited to 'bin/min')
-rwxr-xr-xbin/min24
1 files changed, 24 insertions, 0 deletions
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
}