Skip to content
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

Better usage examples #44

Open
watzon opened this issue Jul 3, 2016 · 4 comments
Open

Better usage examples #44

watzon opened this issue Jul 3, 2016 · 4 comments

Comments

@watzon
Copy link

watzon commented Jul 3, 2016

There are a lot of pieces to this that are uncovered in the example supplied in the docs. More examples would help to better show off how to use this

@tromey
Copy link
Contributor

tromey commented Sep 9, 2016

I'd find it helpful if you could say what specifically would have been useful.

@Loris1123
Copy link

Loris1123 commented Sep 17, 2016

I agree with @iDev0urer . There should be more examples.
For example, the beginning of the documentation mentions reqopt but does not tell what it is or how you use it.
Also the documentation tells it is possible to create custom options and pass them to getopts.

Another thing, I don't even know if this is possible with getopts, are subcommands, where one command is only available if you specified another command before.

@moore3071
Copy link

One thing that I thought was missing until I looked close at the docs was multi for options and flags (e.g. .optmulti, .optflagmulti. It might be nice to either include these in the main example or in the description mention them in this part of the description:

Construct a vector of options, either by using reqopt, optopt, and optflag or by building them from components yourself, and pass them to getopts

@KodrAus
Copy link
Contributor

KodrAus commented Oct 15, 2018

More examples are always welcome if anyone would like to submit PRs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants