etix / mirrorbits

Mirrorbits is a geographical download redirector written in Go for distributing files efficiently across a set of mirrors.
MIT License
497 stars 90 forks source link

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

Closed lazka closed 3 weeks ago

lazka commented 2 months ago

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 commented 2 months ago

@elboulangero

elboulangero commented 2 months ago

Looks good, thank you!

lazka commented 3 weeks ago

thanks!