@@ -12,13 +12,24 @@ package updates, you can specify your package dependency using
12
12
13
13
## [ Unreleased]
14
14
15
+ * No changes yet.*
16
+
17
+ ## [ 0.0.2] - 2020-03-06
18
+
15
19
### Additions
16
20
17
21
- The ` EX_USAGE ` exit code is now used for validation errors.
18
22
- The parser provides near-miss suggestions when a user provides an unknown
19
23
option.
20
24
- ` ArgumentParser ` now builds on Windows.
21
25
- You can throw an ` ExitCode ` error to exit without printing any output.
26
+ - You can now create optional Boolean flags with inversions that default to
27
+ ` nil ` :
28
+ ``` swift
29
+ @Flag (inversion: .prefixedNo ) var takeMyShot: Bool ?
30
+ ```
31
+ - You can now specify exclusivity for case-iterable flags and for Boolean flags
32
+ with inversions.
22
33
23
34
### Fixes
24
35
@@ -31,14 +42,43 @@ package updates, you can specify your package dependency using
31
42
descriptions.
32
43
- Removed the default value note when the default value is an empty string.
33
44
- Default values are now shown for Boolean options.
45
+ - Case-iterable flags are now grouped correctly.
46
+ - Case-iterable flags with default values now show the default value.
47
+ - Arguments from parent commands that are included via ` @OptionGroup ` in
48
+ subcommands are no longer duplicated.
49
+ - Case-iterable flags created with the ` .chooseFirst ` exclusivity parameter now
50
+ correctly ignore additional flags.
51
+
52
+ The 0.0.2 release includes contributions from [ AliSoftware] , [ buttaface] ,
53
+ [ compnerd] , [ dduan] , [ glessard] , [ griffin-stewie] , [ IngmarStein] ,
54
+ [ jonathanpenn] , [ klaaspieter] , [ natecook1000] , [ Sajjon] , [ sjavora] ,
55
+ [ Wildchild9] , and [ zntfdr] . Thank you!
34
56
35
57
## [ 0.0.1] - 2020-02-27
36
58
37
59
- ` ArgumentParser ` initial release.
38
60
39
61
62
+ <!-- Link references for releases -->
40
63
41
-
42
- [ Unreleased ] : https://github.com/apple/swift-argument-parser/compare/0.0.1...HEAD
64
+ [ Unreleased ] : https://github.com/apple/swift-argument-parser/compare/0.0.2...HEAD
65
+ [ 0.0.2 ] : https://github.com/apple/swift-argument-parser/compare/0.0.1...0.0.2
43
66
[ 0.0.1 ] : https://github.com/apple/swift-argument-parser/releases/tag/0.0.1
44
67
68
+ <!-- Link references for contributors -->
69
+
70
+ [ AliSoftware ] : https://github.com/apple/swift-argument-parser/commits?author=AliSoftware
71
+ [ buttaface ] : https://github.com/apple/swift-argument-parser/commits?author=buttaface
72
+ [ compnerd ] : https://github.com/apple/swift-argument-parser/commits?author=compnerd
73
+ [ dduan ] : https://github.com/apple/swift-argument-parser/commits?author=dduan
74
+ [ glessard ] : https://github.com/apple/swift-argument-parser/commits?author=glessard
75
+ [ griffin-stewie ] : https://github.com/apple/swift-argument-parser/commits?author=griffin-stewie
76
+ [ IngmarStein ] : https://github.com/apple/swift-argument-parser/commits?author=IngmarStein
77
+ [ jonathanpenn ] : https://github.com/apple/swift-argument-parser/commits?author=jonathanpenn
78
+ [ klaaspieter ] : https://github.com/apple/swift-argument-parser/commits?author=klaaspieter
79
+ [ natecook1000 ] : https://github.com/apple/swift-argument-parser/commits?author=natecook1000
80
+ [ Sajjon ] : https://github.com/apple/swift-argument-parser/commits?author=Sajjon
81
+ [ sjavora ] : https://github.com/apple/swift-argument-parser/commits?author=sjavora
82
+ [ Wildchild9 ] : https://github.com/apple/swift-argument-parser/commits?author=Wildchild9
83
+ [ zntfdr ] : https://github.com/apple/swift-argument-parser/commits?author=zntfdr
84
+
0 commit comments