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: use argp library for parsing command line options and arguments #1525

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

rjd15372
Copy link
Contributor

@rjd15372 rjd15372 commented Jan 8, 2025

This commit changes the command line parsing code of valkey-benchmark to use the argp library (https://www.gnu.org/software/libc/manual/html_node/Argp.html), which is included in libc.

This makes the options and arguments parsing more structured and easy to extend.

…uments

This commit changes the command line parsing code of `valkey-benchmark`
to use the `argp` library (https://www.gnu.org/software/libc/manual/html_node/Argp.html),
which is included in libc.

This makes the options and arguments parsing more structured and easy to
extend.

Signed-off-by: Ricardo Dias <[email protected]>
@rjd15372 rjd15372 force-pushed the refactor-benchmark-cli branch from a2b73d7 to ac868bd Compare January 8, 2025 15:36
@madolson
Copy link
Member

madolson commented Jan 8, 2025

argp is apparently not on macos.

@rjd15372
Copy link
Contributor Author

rjd15372 commented Jan 9, 2025

argp is apparently not on macos.

Shoot. I should have checked that before implementing this. I guess that's why the parsing was being done manually.

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.

2 participants