diff options
| author | 2019-01-17 15:52:56 +0100 | |
|---|---|---|
| committer | 2019-01-17 15:52:56 +0100 | |
| commit | a1efa9ee7adb502d20bdf6a5dad79356a4575eb3 (patch) | |
| tree | 2994696f2fb389b18588eac52eb383275cb810ea /example/streaming-clap.zig | |
| parent | Refactored the arg iterators to new be static interface implementations (diff) | |
| parent | Update README.md (diff) | |
| download | zig-clap-a1efa9ee7adb502d20bdf6a5dad79356a4575eb3.tar.gz zig-clap-a1efa9ee7adb502d20bdf6a5dad79356a4575eb3.tar.xz zig-clap-a1efa9ee7adb502d20bdf6a5dad79356a4575eb3.zip | |
Merge branch 'master' of github.com:Hejsil/zig-clap
Diffstat (limited to 'example/streaming-clap.zig')
| -rw-r--r-- | example/streaming-clap.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/streaming-clap.zig b/example/streaming-clap.zig index a52a222..aad3e71 100644 --- a/example/streaming-clap.zig +++ b/example/streaming-clap.zig | |||
| @@ -10,8 +10,8 @@ pub fn main() !void { | |||
| 10 | 10 | ||
| 11 | // First we specify what parameters our program can take. | 11 | // First we specify what parameters our program can take. |
| 12 | const params = []clap.Param(u8){ | 12 | const params = []clap.Param(u8){ |
| 13 | clap.Param(u8).flag('h', clap.Names.prefix("help")), | 13 | clap.Param(u8).flag('h', clap.Names.both("help")), |
| 14 | clap.Param(u8).option('n', clap.Names.prefix("number")), | 14 | clap.Param(u8).option('n', clap.Names.both("number")), |
| 15 | clap.Param(u8).positional('f'), | 15 | clap.Param(u8).positional('f'), |
| 16 | }; | 16 | }; |
| 17 | 17 | ||