Enhance your script by easily allowing args or stdin.
An example with stdin in the middle:
stdargs hello - world <<< 'big'
hello
big
world
Without stdin:
stdargs hello world
stdargs 'hello world'
hello
world
hello world
With only stdin:
In this case the
-
arg is optional.
stdargs - <<< hello
stdargs <<< world
hello
world
GPLv3