aboutsummaryrefslogtreecommitdiff
path: root/bin/min
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-12 08:15:20 -0300
committerEuAndreh <eu@euandre.org>2023-04-12 08:15:20 -0300
commitc6188975d2da6c1696c4433f6fce8ae4c9a6ac38 (patch)
tree613545634bc999385d13ecb107d2cce113ba11c4 /bin/min
parentbin/: Add trailing semicolor to Perl heredocs (diff)
downloaddotfiles-c6188975d2da6c1696c4433f6fce8ae4c9a6ac38.tar.gz
dotfiles-c6188975d2da6c1696c4433f6fce8ae4c9a6ac38.tar.xz
bin/: Make help string more consistent across several executables
Diffstat (limited to 'bin/min')
-rwxr-xr-xbin/min6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/min b/bin/min
index 715f4d1..fcb685d 100755
--- a/bin/min
+++ b/bin/min
@@ -12,9 +12,12 @@ usage() {
help() {
cat <<-'EOF'
+
Options:
-h, --help show this message
+ NUMBER the list of numbers to get the min from
+
Get the minimun number from the given values.
@@ -26,16 +29,19 @@ help() {
$ 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