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

refactor: optimize getopt() usage #147

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

CoelacanthusHex
Copy link
Contributor

  • optind will be the index of the first mismatched argument, so use it directly.
  • use while instead of for

* optind will be the index of the first mismatched argument, so use it
  directly.
* use while instead of for

Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
@estkme estkme merged commit 1304ca1 into estkme-group:main Aug 20, 2024
6 checks passed
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.

3 participants