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

[GH-26] Added tests to ensure that long options can start with a hyphen character #29

Merged
merged 2 commits into from
Dec 14, 2024

Conversation

UrsaDK
Copy link
Owner

@UrsaDK UrsaDK commented Dec 14, 2024

This resolves #26 by ensuring that it is possible to define the hyphen (-) and options starting with a hyphen (-XXX) as valid long options in getopts_long OPTSPEC.

On the command line, this allows getopts_long to support both: the --- as a standalone option, and options starting with three hyphens, such as —XXX.

@UrsaDK UrsaDK merged commit 449d7d1 into master Dec 14, 2024
3 checks passed
@UrsaDK UrsaDK deleted the gh-26 branch December 14, 2024 18:13
Copy link

codecov bot commented Dec 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (7248752) to head (3d04ca1).
Report is 1 commits behind head on master.

Additional details and impacted files

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.

Ensure that - can be defined as a long options
1 participant