diff options
| author | 2019-01-17 15:52:56 +0100 | |
|---|---|---|
| committer | 2019-01-17 15:52:56 +0100 | |
| commit | a1efa9ee7adb502d20bdf6a5dad79356a4575eb3 (patch) | |
| tree | 2994696f2fb389b18588eac52eb383275cb810ea /example/comptime-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/comptime-clap.zig')
| -rw-r--r-- | example/comptime-clap.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/comptime-clap.zig b/example/comptime-clap.zig index 8517db8..8d2d8a8 100644 --- a/example/comptime-clap.zig +++ b/example/comptime-clap.zig | |||
| @@ -16,11 +16,11 @@ pub fn main() !void { | |||
| 16 | const params = comptime []clap.Param([]const u8){ | 16 | const params = comptime []clap.Param([]const u8){ |
| 17 | clap.Param([]const u8).flag( | 17 | clap.Param([]const u8).flag( |
| 18 | "Display this help and exit.", | 18 | "Display this help and exit.", |
| 19 | clap.Names.prefix("help") | 19 | clap.Names.both("help"), |
| 20 | ), | 20 | ), |
| 21 | clap.Param([]const u8).option( | 21 | clap.Param([]const u8).option( |
| 22 | "An option parameter, which takes a value.", | 22 | "An option parameter, which takes a value.", |
| 23 | clap.Names.prefix("number"), | 23 | clap.Names.both("number"), |
| 24 | ), | 24 | ), |
| 25 | clap.Param([]const u8).positional(""), | 25 | clap.Param([]const u8).positional(""), |
| 26 | }; | 26 | }; |