-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
help
example doesn't show version
#57
Comments
Yea, you seem to have figured it out, but I can see how one would expect the |
Cool, thanks for the feedback. BTW is what I did in that code snippet "standard"? I couldn't find the pattern anywhere in the examples--but it seems like the "obvious" thing one would want to do when writing both an argument parser and its corresponding help documentation. |
Yep, this is the "standard" way (aka the way I do it) |
Instead of just calling these function, have the examples be small programs that demonstrates how you would actually use them together with argument parsing. fixes #57
Can you have a look here to see if this is a good enough improvement? |
Instead of just calling these function, have the examples be small programs that demonstrates how you would actually use them together with argument parsing. fixes #57
OMG that is PERFECT! Thank you :) |
Instead of just calling these function, have the examples be small programs that demonstrates how you would actually use them together with argument parsing. fixes #57
I'm trying to learn how zig-clap works, and I hoped the
help
example would be more illustrative:Maybe this example should also show a simple version string output?
What I'm really looking for is an example where the args are parsed and then re-used as help output. i.e. I don't want to write out the arguments and their instructions only to re-write those arguments and their instructions in the "usage" block or "help" text.
Edit: I think I figured out what I was looking for:
The text was updated successfully, but these errors were encountered: