-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Replace structopt by clap #235
Comments
No promises, but I'll try to make this happen |
It isn’t complicated, structopt to clap is almost search&replace – I could do it if I knew that the pull request will be accepted rather than stuck because nobody has time to review it. |
Yeah, the only hurdle is to get buy in from the team since it's a change a pretty central place. If you're willing to put in the work/pr. That will make it easier for me to champion 💪 |
--- Fixed formatting Includes-commit: 05f9754 Includes-commit: 29286c7 Replicated-from: cloudflare#239
What is the problem your feature solves, or the need it fulfills?
structopt crate is unmaintained and superseded by clap v3 (Maintenance note). It has bugs that clap fixed three years ago before even releasing them (TeXitoi/structopt#539, clap-rs/clap#2527). This creates issues when expanding Pingora’s Opt structure.
Describe the solution you'd like
Pingora should use a current clap version.
Describe alternatives you've considered
I implemented the following hack – adding a dummy field to the app’s options only to overwrite application description that has been overwritten by
Opt
above:The text was updated successfully, but these errors were encountered: