Comments (5)
OMG that is PERFECT! Thank you :)
from zig-clap.
Yea, you seem to have figured it out, but I can see how one would expect the help
example to be a program that actually only printed help when --help
was passed. I might try to make this a little more clear later today if I get the time. PRs are always welcome if I don't get around to it.
from zig-clap.
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.
from zig-clap.
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)
from zig-clap.
Can you have a look here to see if this is a good enough improvement?
#59
from zig-clap.
Related Issues (20)
- Create a release for 0.11 HOT 2
- Parse int larger than u8 HOT 4
- How to deal with InvalidaArgument error HOT 4
- Passing sensitive input HOT 2
- Create a tag to line up with zon version 0.7.0 HOT 2
- Argument parsing in function HOT 4
- Remove default allocator assignment in clap HOT 2
- infinite loop in parseEx, "while (try stream.next())" HOT 7
- Make `clap.HelpOptions.max_width` unicode aware
- zig-clap doesn't build with zig 0.9.1 HOT 5
- Enum parser
- No longer compiles against zig master
- Why the usage output is so simple? HOT 4
- Support for required parameter/argument HOT 7
- A parameter without a long name crashes the `stage2` compiler HOT 3
- Seems you have crashed the compiler. A way to work around this is to use the stage1 compiler. This is done by either passing `-fstage1` to `zig build-exe` or setting the `exe.stage1` field to `true` in your `build.zig` file. HOT 2
- Supporting long options of more than one word HOT 1
- Whether subcommands are supported ? HOT 3
- Can't install it using the built-in package manager HOT 1
- Support for multiple positionals of different type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zig-clap.