-
-
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
Update to structopt 0.3 master #1660
Comments
@CreepySkeleton Could you link the structopt breaking changes here? |
@pksunkara Also please keep in mind that |
@TeXitoi Is there a document about difference between structopt and clap_derive? Why are not combining the efforts? |
When I try to do several things at once it typically results in nothing being done :( I'm going to write such a "moving from
I'd love to! |
@CreepySkeleton We can close this, the only thing we are missing is: Also, We had decided not to use |
Yeah, if somebody wants paw support here - well, I'm not totally against it, but let's wait for a feedback first. |
What about the error message improvement commit I linked above?
…--
Pavan Kumar Sunkara
On 6 February 2020 at 10:34:04 AM, CreepySkeleton ([email protected]) wrote:
Closed #1660 <#1660>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1660?email_source=notifications&email_token=AABKU34HVYTNELAK7PLK3TLRBPKQXA5CNFSM4KPBV5U2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWOMKIHI#event-3013125149>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABKU32OWVK22PP77T25ORTRBPKQXANCNFSM4KPBV5UQ>
.
|
That's not much of improvement anyway, see diff for the `.stderr` files. I think it can wait for refactoring.
|
Oh, why was |
#[paw::main]
fn main(opts: Opts) {
//...
} fn main() {
let opts = Opts::parse();
//...
} Identical behavior, two lines difference per program. Is it even worth to talk about? IMO it definitely didn't worth the fuss it caused in structopt. This "fully declarative" argument is meaningless unless you specify your definition of "fully declarative". I think I can count half a dozen of people I've met who had their own definition of declarative, exclusive of course, and obviously the only correct one. I guess it's fair to say that I have come to belief that this kind of "this isn't real magic!" kind of arguments is merely a synonym for "I'm out of arguments, but I still believe my opponent is obviously wrong". |
@CreepySkeleton is there a good reason to demean other repositories? this is against the Code of Conduct of Clap and the CLI-WG organisation. |
@Lucretiel I am afraid that I don't understand this part.
Can you please explain what it means and why clap is lacking it? |
The idea is that a derive macro replaces a "imperative" definition of your parameter set (via the macro or App builder methods) with a "declarative" definition (a struct definition). |
With respect, your comment was explicitly inviting discussion on this topic. |
Ah, understood now. I think the question of adding |
@Dylan-DPC I don't think you can classify it as a breach of CoC. I was careful to criticize code. not people; I wish the best of luck to the authors of @Lucretiel Your comment reads a bit incoherent to me, but I think I can understand it in two ways:
As regards to my earlier comment: it was half a year ago. I used to believe that the feedback from the open source crowd is mostly sound and weighted, even when it's about bikesheding. Now I know better. |
structopt
has released v0.3.0 a month ago. This update brings in a number of breaking changes (most noticeablyraw
attributes removal), cosmetic changes (like span-based error reporting), and a lot of minor improvements and bug fixes. Furthermore, it has been improving further over this month, working both on new features and bug fixes. Also docs have been clarified and greatly improved.Summarizing all of it, I propose to use
structopt
v0.3 asclap_derive
.The text was updated successfully, but these errors were encountered: