While working on a bash script, I stumbled upon what I think may be the cleanest and simplest way to add CLI params to a bash script so far:
This lets you use short (-V
), long (--version
), space separated (--user john
), and equal separated (--user=john
) arguments.
It’s not perfect, but for a quick bash script hack, I’ve found it very useful!
Leave a Reply