murarth / gumdrop

Rust option parser with custom derive support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not obvious how to have required arguments

Timmmm opened this issue · comments

I've spend about 10 minutes working on a project using Gumdrop, reading the docs, examples etc, but I can't find anywhere saying how to have required arguments, something like #[required].

Ah I eventually found the derive options here. It's a shame they don't show up in the docs for the actual macro, or when you search for them.

I suggest adding the list of options to the Readme/first page of the docs, or at least the most common ones. That is where I would have expected to see them. I know there is a link on that page but I skimmed over it and I think most people would too (nobody actually exhaustively reads documentation because it would take far too long).

Great project btw!