kvz / bash3boilerplate

Templates to write better Bash scripts
http://bash3boilerplate.sh
MIT License
2.08k stars 196 forks source link

document whether and how the auto-parsing handles positional arguments #137

Open tomprogers opened 4 years ago

tomprogers commented 4 years ago

Parsing of options seems to work fine, but what's the deal as far as positional args? My script should accept one. Am I just on my own to figure out where to pick up the thread at the bottom of the template? The boilerplate code has already performed so many operations on the normal argument variables, it's hard to know where things stand.

kvz commented 4 years ago

That's a good question, so you mean instead of:

launch.sh -action help what about launch.sh help? I have not written the parser myself but I do not think the parser supports this actually