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

fix: convert hyphens to underscores in positionals, flags and options #20

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

veyh
Copy link
Contributor

@veyh veyh commented Apr 26, 2022

Hey, I noticed if I added a positional, flag or an option with hyphens in it, the resulting script failed to run because it tried to set variables like argc_hyphen-option=foo (from --hyphen-option foo). So I made a change to convert the hyphens to underscores.

Whether you want to include this change or not, I would suggest mentioning how hyphens are handled in the README.

@sigoden sigoden added the bug Something isn't working label Apr 27, 2022
@sigoden sigoden merged commit c42b45d into sigoden:main Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants