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

mirrorbits-del-stats: allow passing the host to redis-cli #177

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

lazka
Copy link
Contributor

@lazka lazka commented Apr 27, 2024

Passing the host to redis-cli is only possible via the "-h" switch, which clashes with the "-h" interpreted as "--help" in the script.

Make "--" stop the argument parsing, so "-h" can be forwarded to redis-cli:

mirrorbits-del-stats daily:30 monthly:12 -- -h redis

@lazka
Copy link
Contributor Author

lazka commented Apr 27, 2024

@elboulangero

lazka added a commit to msys2/msys2-main-server that referenced this pull request Apr 27, 2024
It has no logic for separating forwarded and its own args, and it
just stops at the first unknown option, so pass "-p" first so "-h"
isn't interpreted as "--help"

See etix/mirrorbits#177
Passing the host to redis-cli is only possible via the "-h" switch,
which clashes with the "-h" interpreted as "--help" in the script.

Make "--" stop the argument parsing, so "-h" can be forwarded to redis-cli:

mirrorbits-del-stats daily:30 monthly:12 -- -h redis
@elboulangero
Copy link
Contributor

Looks good, thank you!

@jbkempf jbkempf merged commit 53725c9 into etix:master Jun 8, 2024
@lazka
Copy link
Contributor Author

lazka commented Jun 8, 2024

thanks!

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.

None yet

3 participants