google/argh

Is it possible to get a `TopLevelCommand`'s `FieldAttrs` with the current exposed API?

grantshandy opened this issue · 0 comments

I'm looking to write a crate that integrates with argh, and it needs the metadata accessed by the argh_derive macros. Is there any way I can get this information from the public argh API, or do I have to completely reimplement the derive macro myself?

If it's not easily possible, would it be possible for argh to open its API up to expose extra metadata information? I'm not sure how this would work exactly, but maybe another function could be added to the FromArgs crate to return a struct like FieldAttrs?