A simple shell library with cli utilities.
Checks if a flag is present in the arguments. Returns 'true' if its present, or nothing otherwise.
Example:
hasflag --help $*
Read the value of an option. It returns the next argument following the option.
Example:
readopt --log-level $*
Returns the first argument if not empty, the second otherwise.
value=$(or $candidate "default value")