Skip to content

Conversation

chenrui333
Copy link

@chenrui333 chenrui333 force-pushed the fix/long-opts-parsing branch from a06bcc1 to 32418e7 Compare July 29, 2025 22:12
@chenrui333 chenrui333 changed the title fix: restore --version and --help on bash 3.2 by pre-parsing long flags Fix long option parsing by using expr instead of arithmetic expansion Jul 29, 2025
@kdabir kdabir self-requested a review August 1, 2025 09:04
Copy link
Owner

@kdabir kdabir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. I'll add tests in a separate commit so that this is covered for future.

Copy link
Owner

@kdabir kdabir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the current changes fail the shellcheck. I am fixing this in master directly and adding some tests. Thank you so much for contributing

@kdabir
Copy link
Owner

kdabir commented Aug 1, 2025

Thanks for suggesting the fix. I could not merge your PR because it was failing shellcheck. However that prompted me to add tests for this and also fix it in a way that shellcheck doesn't complain.

@kdabir kdabir closed this Aug 1, 2025
@kdabir
Copy link
Owner

kdabir commented Aug 1, 2025

@chenrui333
Copy link
Author

yeah, that works for me, thanks!

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.

--version and --help options return error
2 participants