More descriptions.
This commit is contained in:
parent
94c96afcdd
commit
8a505b6930
16
README.md
16
README.md
|
@ -1,6 +1,20 @@
|
|||
# zig-args
|
||||
# Zig Argument Parser
|
||||
Simple-to-use argument parser with struct-based config
|
||||
|
||||
## Features
|
||||
- Automatic option generation from a config struct
|
||||
- Familiar *look & feel*:
|
||||
- Everything after the first `--` is assumed to be a positional argument
|
||||
- A single `-` is interpreted as a positional argument which can be used as the stdin/stdout file placeholder
|
||||
- Short options with no argument can be combined into a single argument: `-dfe`
|
||||
- Integrated support for primitive types:
|
||||
- All integer types (signed & unsigned)
|
||||
- Floating point types
|
||||
- Booleans (takes no argument)
|
||||
- Strings
|
||||
|
||||
## Example
|
||||
|
||||
```zig
|
||||
const options = try argsParser.parse(struct {
|
||||
// This declares long options for double hyphen
|
||||
|
|
Loading…
Reference in New Issue
Block a user