gli 2.12.2 → 2.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gli/commands/help_modules/full_synopsis_formatter.rb +3 -2
- data/lib/gli/switch.rb +4 -0
- data/lib/gli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84a063f077612bd68999d7ab4771655577b9f66e
|
|
4
|
+
data.tar.gz: 1c12e2ce024650ac44bff39eaba6a4df7f28f77c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
33
|
+
option.required?? doc : "[#{doc}]"
|
|
34
|
+
}.sort.join(' ').strip
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
private
|
data/lib/gli/switch.rb
CHANGED
data/lib/gli/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
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.
|