gli 2.12.2 → 2.12.3

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: bc8e090eb35818fb076ce47c289821e655c8a4b7
4
- data.tar.gz: b9db13d34615c611aa00260d9d32137d87b647ca
3
+ metadata.gz: 84a063f077612bd68999d7ab4771655577b9f66e
4
+ data.tar.gz: 1c12e2ce024650ac44bff39eaba6a4df7f28f77c
5
5
  SHA512:
6
- metadata.gz: eedf43747800d952018ec94f6f52ec2b5768223fd30da58d61811a4a218ede75351b53ff3a7ebbc6ebe24b304f58d2b177ae3c6309dc942be93ccd528d902dad
7
- data.tar.gz: f92d617d3e07e3f17fe9c668af1338147a82b01c3624caad924edcba26a03ea46491a859be7a8a47cc6e20b7784f1116622a399a53cbcc39b6cee5126b564793
6
+ metadata.gz: d417534ed4728c1a95b03069dd965f9cc9b74bac4edcbdfc6087712ba13e6a55084c71d6c58e21af237dfc8685dc8208a3b9371a6320ba3d31c54804007251f3
7
+ data.tar.gz: 01fb54aa5de01661ef48dfb2d359fa396db13bbc9bb16fb20d75f1f71cda9197047f925d63754b831b4661c94ff8c3849ba1c3cf0e578074ab843eab8ae3ffa6
@@ -27,10 +27,11 @@ module GLI
27
27
 
28
28
  def sub_options_doc(sub_options)
29
29
  sub_options_doc = sub_options.map { |_,option|
30
- option.names_and_aliases.map { |name|
30
+ doc = option.names_and_aliases.map { |name|
31
31
  CommandLineOption.name_as_string(name,false) + (option.kind_of?(Flag) ? " #{option.argument_name }" : '')
32
32
  }.join('|')
33
- }.map { |invocations| "[#{invocations}]" }.sort.join(' ').strip
33
+ option.required?? doc : "[#{doc}]"
34
+ }.sort.join(' ').strip
34
35
  end
35
36
 
36
37
  private
@@ -31,5 +31,9 @@ module GLI
31
31
  def negatable?
32
32
  @negatable
33
33
  end
34
+
35
+ def required?
36
+ false
37
+ end
34
38
  end
35
39
  end
@@ -1,5 +1,5 @@
1
1
  module GLI
2
2
  unless const_defined? :VERSION
3
- VERSION = '2.12.2'
3
+ VERSION = '2.12.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.2
4
+ version: 2.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Copeland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-29 00:00:00.000000000 Z
11
+ date: 2015-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
276
  version: '0'
277
277
  requirements: []
278
278
  rubyforge_project: gli
279
- rubygems_version: 2.2.0.rc.1
279
+ rubygems_version: 2.4.4
280
280
  signing_key:
281
281
  specification_version: 4
282
282
  summary: Build command-suite CLI apps that are awesome.