diff options
Diffstat (limited to 'bin/clamp')
-rwxr-xr-x | bin/clamp | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -15,7 +15,26 @@ help() { Options: -h, --help show this message + Clamp the NUMBER between MIN and MAX. + + + Examples: + + Assert the number is within the interval: + + $ clamp 5 3 9 + 5 + + When a number is below MIN it gets clamped: + + $ clamp 1 3 9 + 3 + + When a number is above MAX it gets clamped: + + $ clamp 15 3 9 + 9 EOF } |