cl 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c566fcf9fc49fe3d3565f2f5bad09aef48ff75a
4
- data.tar.gz: 5dcdd36b075b21ece0b05780955029467d29986c
3
+ metadata.gz: c1c3604dd40f1ba8933a2909c29466c3b216aea9
4
+ data.tar.gz: 709bbd7c58620b7a9593100dd84c7f3becf975c1
5
5
  SHA512:
6
- metadata.gz: 13b77f339a3d479f8a6b7295ee9f0ba22b0b352ad439af63223a31ab062d34936313f34a44cce9042099d38fea7243d31f64c70801b23a76cf765af848220297
7
- data.tar.gz: 21bde54f28368e44ca3decb3bb0337e2e5c58606a0474e53beedaeae18540747ea9fbdc60744164079374174b6c24bc9d85cb47438c2fb35a18341efed195199
6
+ metadata.gz: 81286138022b232fa31366153583eca8e0e0335a8d0aee33078f966eb3668aea1dc86b9c29ba184932584516cc0bfbb30a6c6df03ba10b5e6dd228947f2153e7
7
+ data.tar.gz: 2b92368c83c2816ee304e52e7d0cfe73f3bedb5d4b5ea18aa9db4d9ade8b75cf4e0ba6340434ddce322341ba38a1fe1a82a53c34d3d182f233c5e7ac26f082eb
@@ -21,6 +21,7 @@
21
21
  * Add `opt '--one STR', downcase: true`
22
22
  * Add `opt '--one STR', internal: true`, hide internal options from help output
23
23
  * Add `opt '--one STR', example: 'foo'`
24
+ * Add `opt '--one STR', note: 'note'`
24
25
  * Add `opt '--one STR', see: 'https://provider.com/docs'
25
26
 
26
27
  ### Changed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cl (0.1.12)
4
+ cl (0.1.13)
5
5
  regstry (~> 1.0.3)
6
6
 
7
7
  GEM
@@ -114,6 +114,7 @@ class Cl
114
114
  opts << "min: #{opt.min}" if opt.min?
115
115
  opts << "max: #{opt.max}" if opt.max?
116
116
  opts << "e.g.: #{opt.example}" if opt.example?
117
+ opts << "note: #{opt.note}" if opt.note?
117
118
  opts << "see: #{opt.see}" if opt.see?
118
119
  opts << format_deprecated(opt) if opt.deprecated?
119
120
  opts.compact
@@ -136,6 +136,14 @@ class Cl
136
136
  opts[:max]
137
137
  end
138
138
 
139
+ def note?
140
+ !!opts[:note]
141
+ end
142
+
143
+ def note
144
+ opts[:note]
145
+ end
146
+
139
147
  def required?
140
148
  !!opts[:required]
141
149
  end
@@ -1,3 +1,3 @@
1
1
  class Cl
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-18 00:00:00.000000000 Z
11
+ date: 2019-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: regstry