Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved script argument parsing (any order), plus couple tiny tweaks #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

lgorenstein
Copy link

Thank you for the work and handy tools!

Minor, but feels cleaner (if we are in bash, might as well use bash-isms)
Original version required -D, -I and -O options to be listed in exactly this order. While doable, this is somewhat counter-intuitive with typical Unix option processing expectations (e.g. `ls -l -a` is expected to behave the same as `ls -a -l`). This change introduces rudimentary options processing that allows specifying them in an arbitrary order (as long as they are before any consecutive command arguments).
Better arguments parsing, plus couple tiny tweaks
@lgorenstein lgorenstein changed the title A small typo fix Improved script argument parsing (any order), plus couple tiny tweaks Aug 7, 2021
@lgorenstein
Copy link
Author

What started with one tiny change to README, extended into argument parsing improvement. Sorry for extra noise! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant