Skip to content

Fix printing of help and version info - attempt 2 #30

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

Merged
merged 1 commit into from
Jul 31, 2025

Conversation

ianthomas23
Copy link
Member

My fix in #27 wasn't correct.

Using !version to check if the version flag is specified is not correct as version is a pointer. It could be !(*version) instead but I am not prepared to use that, or the better version->count(). However it is better to just use an else of the previous if (version->count()) so this is what I have done.

@ianthomas23 ianthomas23 added the bug Something isn't working label Jul 31, 2025
@ianthomas23
Copy link
Member Author

CI will fail of course.

@ianthomas23 ianthomas23 merged commit 8fbf6c1 into main Jul 31, 2025
1 check failed
@ianthomas23 ianthomas23 deleted the fix-help-attempt-2 branch July 31, 2025 11:04
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.

1 participant