@@ -4,18 +4,35 @@ $ typed-derive implicit --help
44Usage: typed-derive implicit [OPTIONS]
55
66Options:
7- -O <OPTIMIZATION> Implicitly using `std::str::FromStr`
8- -I <DIR> Allow invalid UTF-8 paths
9- --bind <BIND> Handle IP addresses
10- --sleep <SLEEP> Allow human-readable durations
11- -h, --help Print help
7+ -O <OPTIMIZATION>
8+ Implicitly using `std::str::FromStr`
9+
10+ -I <DIR>
11+ Allow invalid UTF-8 paths
12+
13+ --bind <BIND>
14+ Handle IP addresses
15+
16+ --sleep <SLEEP>
17+ Allow human-readable durations
18+
19+ --bump-level <BUMP_LEVEL>
20+ Custom enums
21+
22+ Possible values:
23+ - major: Increase the major version (x.0.0)
24+ - minor: Increase the minor version (x.y.0)
25+ - patch: Increase the patch version (x.y.z)
26+
27+ -h, --help
28+ Print help (see a summary with '-h')
1229
1330```
1431
1532Optimization-level (number)
1633``` console
1734$ typed-derive implicit -O 1
18- Implicit(ImplicitParsers { optimization: Some(1), include: None, bind: None, sleep: None })
35+ Implicit(ImplicitParsers { optimization: Some(1), include: None, bind: None, sleep: None, bump_level: None })
1936
2037$ typed-derive implicit -O plaid
2138? failed
@@ -28,14 +45,14 @@ For more information, try '--help'.
2845Include (path)
2946``` console
3047$ typed-derive implicit -I../hello
31- Implicit(ImplicitParsers { optimization: None, include: Some("../hello"), bind: None, sleep: None })
48+ Implicit(ImplicitParsers { optimization: None, include: Some("../hello"), bind: None, sleep: None, bump_level: None })
3249
3350```
3451
3552IP Address
3653``` console
3754$ typed-derive implicit --bind 192.0.0.1
38- Implicit(ImplicitParsers { optimization: None, include: None, bind: Some(192.0.0.1), sleep: None })
55+ Implicit(ImplicitParsers { optimization: None, include: None, bind: Some(192.0.0.1), sleep: None, bump_level: None })
3956
4057$ typed-derive implicit --bind localhost
4158? failed
@@ -48,7 +65,7 @@ For more information, try '--help'.
4865Time
4966``` console
5067$ typed-derive implicit --sleep 10s
51- Implicit(ImplicitParsers { optimization: None, include: None, bind: None, sleep: Some(10s) })
68+ Implicit(ImplicitParsers { optimization: None, include: None, bind: None, sleep: Some(10s), bump_level: None })
5269
5370$ typed-derive implicit --sleep forever
5471? failed
@@ -57,3 +74,24 @@ error: invalid value 'forever' for '--sleep <SLEEP>': failed to parse "forever"
5774For more information, try '--help'.
5875
5976```
77+
78+ Version field
79+ ``` console
80+ $ typed-derive implicit --bump-level minor
81+ Implicit(ImplicitParsers { optimization: None, include: None, bind: None, sleep: None, bump_level: Some(Minor) })
82+
83+ $ typed-derive implicit --bump-level 10.0.0
84+ ? failed
85+ error: invalid value '10.0.0' for '--bump-level <BUMP_LEVEL>'
86+ [possible values: major, minor, patch]
87+
88+ For more information, try '--help'.
89+
90+ $ typed-derive implicit --bump-level blue
91+ ? failed
92+ error: invalid value 'blue' for '--bump-level <BUMP_LEVEL>'
93+ [possible values: major, minor, patch]
94+
95+ For more information, try '--help'.
96+
97+ ```
0 commit comments