Skip to content

Fix hang on command line parsing #477

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Fix hang on command line parsing #477

wants to merge 4 commits into from

Conversation

nephros
Copy link
Contributor

@nephros nephros commented Nov 29, 2024

Some of the recent changes broke command line handling in some cases, causing
the patchmanager program to hang.

E.g calling patchmanger without any options, or -u without a parameter etc.

This reworks parameter handling, fixing these cases and very likely introducing new bugs.

It also drive-by introduces a --version switch that may be useful at some point.

  • Declare help static
  • Add a version() method
  • Adapt parameter handling
  • Adapt parameter handling II

@nephros nephros added the bug something that needs fixing label Dec 4, 2024
@nephros nephros marked this pull request as draft January 30, 2025 20:37
@nephros
Copy link
Contributor Author

nephros commented Jan 30, 2025

Marking this a draft again, it needs more work. Command line parsing should get a complete do-over it´s a mess right now.

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

Successfully merging this pull request may close these issues.

1 participant