-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Document benefit of using Clap 3.x.x over StructOpt #1584
Comments
Keep in mind that the
That would be nice indeed, but it looks like the current maintainers do not agree.
For now effectively none since you'd be moving from
The intention here (AFAIK) is to have them both [ |
Thanks @CreepySkeleton, that's a really good summary of the current state of play. So for now, I'm better off using StructOpt. But then when (if) they reach parity it gets murky again... Kind of seems like a lot of overlap and a bit of bloat. I'd really love to hear from one of the maintainers here. @kbknapp ? |
If they do reach parity (and I really hope they would)
A lot of overlap indeed, but bot
@kbknapp is unlikely to reply, he's kind of retired. Also @Dylan-DPC what is your opinion on this matter? Is there any particular reason not to update to |
Give me some time i'll respond to this and the other issue later today. But please do not pass any statements on behalf of the team. Thanks |
Also @CreepySkeleton if you want to go about updating structopt to 0.3 on clap-derive, you can go ahead and do it, we have no problem with that :) |
I've never meant to, I'm terribly sorry if I left wrong impression |
Maybe this is a question more appropriate for the |
You can do almost everything. There is some exceptions as TeXitoi/structopt#130 |
The idea when the 3.0 branch started (seemingly forever ago) was exactly as you stated, to bring all the functionality under one roof and have a more cohesive product for users. However, with my life events being what they've been over the past year (changed jobs, moved, had a baby) it has fallen behind. My dream goal was to move StructOpt into clap, but still have @TeXitoi as the owner of I'd still love for that dream to become a reality. But it's also totally understandable that there are valid arguments against this. The next step would be trying to update I guess it's TBD how this will all play out. It is open source after all 😄
Small nit, |
@kbknapp It's good to have you back! In fact, I am performing the transition in clap-rs/clap_derive#22 . Right now I'm short on time but I think I'll get clear in 3-4 days. Any specific deadline I should account for? |
@CreepySkeleton 3-4 days sounds good |
I didn't anticipate the amount of interest this question would stir up! I really appreciate the in depth responses, and I think I have a clear picture of where things are at. It sounds like there's not a totally coherent story for users now, but by the sounds of things it's not too far off. I'll continue using StructOpt, and I'll be paying close attention as things develop! |
a year and a bit down the line, where are things at now? |
We have decided on the plan and the difference between clap v3 and structopt long ago, #1574 (comment) |
In that case, I think this issue can probably be closed |
I am using this issue as a placeholder to write a small blurb about it in the readme/website |
I've been using Clap for some time now and I'm a big fan.
I've recently switched to using StructOpt because I prefer the declarative style.
I see that clap 3 is re-exporting StructOpt, so I guess it's nice to have all the functionality under one roof.
What I'm not clear on, is where the benefit lies for me to switch from StructOpt (which re-exports Clap functionality) to Clap (which re-exports StructOpt functionality) given that I'm exclusively using the declarative syntax.
What does a user gain by having Clap as the direct dependency? I don't feel this has been documented anywhere.
The text was updated successfully, but these errors were encountered: