gli 1.3.7 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gli.rb +7 -0
- data/lib/gli_version.rb +1 -1
- metadata +137 -73
data/lib/gli.rb
CHANGED
@@ -45,6 +45,9 @@ module GLI
|
|
45
45
|
@@use_openstruct = false
|
46
46
|
@@prog_desc = nil
|
47
47
|
clear_nexts
|
48
|
+
|
49
|
+
desc 'Show this message'
|
50
|
+
switch :help
|
48
51
|
end
|
49
52
|
|
50
53
|
# Describe the next switch, flag, or command. This should be a
|
@@ -528,6 +531,7 @@ module GLI
|
|
528
531
|
private
|
529
532
|
|
530
533
|
def verify_unused_in_option(name,option_like,type,context) # :nodoc:
|
534
|
+
return if name.to_s == 'help'
|
531
535
|
raise ArgumentError.new("#{name} has already been specified as a #{type} #{context}") if option_like[name]
|
532
536
|
option_like.each do |one_option_name,one_option|
|
533
537
|
if one_option.aliases
|
@@ -558,4 +562,7 @@ module GLI
|
|
558
562
|
end
|
559
563
|
end
|
560
564
|
|
565
|
+
desc 'Show this message'
|
566
|
+
switch :help
|
567
|
+
|
561
568
|
end
|
data/lib/gli_version.rb
CHANGED
metadata
CHANGED
@@ -1,149 +1,213 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
name:
|
2
|
+
name: !binary |-
|
3
|
+
Z2xp
|
3
4
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
+
version: 1.4.0
|
5
6
|
prerelease:
|
6
7
|
platform: ruby
|
7
8
|
authors:
|
8
|
-
-
|
9
|
+
- !binary |-
|
10
|
+
RGF2aWQgQ29wZWxhbmQ=
|
9
11
|
autorequire:
|
10
|
-
bindir:
|
12
|
+
bindir: !binary |-
|
13
|
+
Ymlu
|
11
14
|
cert_chain: []
|
12
|
-
date: 2011-
|
15
|
+
date: 2011-12-02 00:00:00.000000000 Z
|
13
16
|
dependencies:
|
14
17
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
|
18
|
+
name: !binary |-
|
19
|
+
cmFrZQ==
|
20
|
+
requirement: &70327485435980 !ruby/object:Gem::Requirement
|
17
21
|
none: false
|
18
22
|
requirements:
|
19
|
-
- -
|
23
|
+
- - !binary |-
|
24
|
+
fj4=
|
20
25
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
26
|
+
version: !binary |-
|
27
|
+
MC45LjIuMg==
|
22
28
|
type: :development
|
23
29
|
prerelease: false
|
24
|
-
version_requirements: *
|
30
|
+
version_requirements: *70327485435980
|
25
31
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
|
32
|
+
name: !binary |-
|
33
|
+
cmRvYw==
|
34
|
+
requirement: &70327485434940 !ruby/object:Gem::Requirement
|
28
35
|
none: false
|
29
36
|
requirements:
|
30
|
-
- -
|
37
|
+
- - !binary |-
|
38
|
+
fj4=
|
31
39
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
40
|
+
version: !binary |-
|
41
|
+
My4xMQ==
|
33
42
|
type: :development
|
34
43
|
prerelease: false
|
35
|
-
version_requirements: *
|
44
|
+
version_requirements: *70327485434940
|
36
45
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
|
46
|
+
name: !binary |-
|
47
|
+
cmVlaw==
|
48
|
+
requirement: &70327485434360 !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
|
-
- -
|
51
|
+
- - !binary |-
|
52
|
+
fj4=
|
42
53
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
54
|
+
version: !binary |-
|
55
|
+
MS4yLjA=
|
44
56
|
type: :development
|
45
57
|
prerelease: false
|
46
|
-
version_requirements: *
|
58
|
+
version_requirements: *70327485434360
|
47
59
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
49
|
-
|
60
|
+
name: !binary |-
|
61
|
+
cm9vZGk=
|
62
|
+
requirement: &70327485433260 !ruby/object:Gem::Requirement
|
50
63
|
none: false
|
51
64
|
requirements:
|
52
|
-
- -
|
65
|
+
- - !binary |-
|
66
|
+
fj4=
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
68
|
+
version: !binary |-
|
69
|
+
Mi4xLjA=
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements: *
|
72
|
+
version_requirements: *70327485433260
|
58
73
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
60
|
-
|
74
|
+
name: !binary |-
|
75
|
+
Z3JhbmNoZXI=
|
76
|
+
requirement: &70327485431940 !ruby/object:Gem::Requirement
|
61
77
|
none: false
|
62
78
|
requirements:
|
63
|
-
- -
|
79
|
+
- - !binary |-
|
80
|
+
fj4=
|
64
81
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
82
|
+
version: !binary |-
|
83
|
+
MC4xLjU=
|
66
84
|
type: :development
|
67
85
|
prerelease: false
|
68
|
-
version_requirements: *
|
86
|
+
version_requirements: *70327485431940
|
69
87
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
|
88
|
+
name: !binary |-
|
89
|
+
cmFpbmJvdw==
|
90
|
+
requirement: &70327485431220 !ruby/object:Gem::Requirement
|
72
91
|
none: false
|
73
92
|
requirements:
|
74
|
-
- -
|
93
|
+
- - !binary |-
|
94
|
+
fj4=
|
75
95
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
96
|
+
version: !binary |-
|
97
|
+
MS4xLjE=
|
77
98
|
type: :development
|
78
99
|
prerelease: false
|
79
|
-
version_requirements: *
|
100
|
+
version_requirements: *70327485431220
|
80
101
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
82
|
-
|
102
|
+
name: !binary |-
|
103
|
+
YXJ1YmE=
|
104
|
+
requirement: &70327485461200 !ruby/object:Gem::Requirement
|
83
105
|
none: false
|
84
106
|
requirements:
|
85
|
-
- -
|
107
|
+
- - !binary |-
|
108
|
+
fj4=
|
86
109
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
110
|
+
version: !binary |-
|
111
|
+
MC40Ljc=
|
88
112
|
type: :development
|
89
113
|
prerelease: false
|
90
|
-
version_requirements: *
|
91
|
-
description:
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
114
|
+
version_requirements: *70327485461200
|
115
|
+
description: !binary |-
|
116
|
+
QW4gYXBwbGljYXRpb24gYW5kIEFQSSBmb3IgZGVzY3JpYmluZyBjb21tYW5k
|
117
|
+
IGxpbmUgaW50ZXJmYWNlcyB0aGF0IGNhbiBiZSB1c2VkIHRvIHF1aWNrbHkg
|
118
|
+
Y3JlYXRlIGEgc2hlbGwgZm9yIGV4ZWN1dGluZyBjb21tYW5kLWxpbmUgdGFz
|
119
|
+
a3MuICBUaGUgY29tbWFuZCBsaW5lIHVzZXIgaW50ZXJmYWNlIGlzIHNpbWls
|
120
|
+
YXIgdG8gR2l0cywgaW4gdGhhdCBpdCB0YWtlcyBnbG9iYWwgb3B0aW9ucywg
|
121
|
+
YSBjb21tYW5kLCBjb21tYW5kLXNwZWNpZmljIG9wdGlvbnMsIGFuZCBhcmd1
|
122
|
+
bWVudHM=
|
123
|
+
email: !binary |-
|
124
|
+
ZGF2aWRjb3BlbGFuZEBuYWlsZHJpdmluNS5jb20=
|
96
125
|
executables:
|
97
|
-
-
|
126
|
+
- !binary |-
|
127
|
+
Z2xp
|
98
128
|
extensions: []
|
99
129
|
extra_rdoc_files:
|
100
|
-
-
|
101
|
-
|
130
|
+
- !binary |-
|
131
|
+
UkVBRE1FLnJkb2M=
|
132
|
+
- !binary |-
|
133
|
+
Z2xpLnJkb2M=
|
102
134
|
files:
|
103
|
-
-
|
104
|
-
|
105
|
-
-
|
106
|
-
|
107
|
-
-
|
108
|
-
|
109
|
-
-
|
110
|
-
|
111
|
-
-
|
112
|
-
|
113
|
-
-
|
114
|
-
|
115
|
-
-
|
116
|
-
|
117
|
-
-
|
118
|
-
|
119
|
-
-
|
120
|
-
|
135
|
+
- !binary |-
|
136
|
+
bGliL2dsaS9jb21tYW5kLnJi
|
137
|
+
- !binary |-
|
138
|
+
bGliL2dsaS9jb21tYW5kX2xpbmVfdG9rZW4ucmI=
|
139
|
+
- !binary |-
|
140
|
+
bGliL2dsaS9jb3B5X29wdGlvbnNfdG9fYWxpYXNlcy5yYg==
|
141
|
+
- !binary |-
|
142
|
+
bGliL2dsaS9mbGFnLnJi
|
143
|
+
- !binary |-
|
144
|
+
bGliL2dsaS9zd2l0Y2gucmI=
|
145
|
+
- !binary |-
|
146
|
+
bGliL2dsaS9vcHRpb25zLnJi
|
147
|
+
- !binary |-
|
148
|
+
bGliL2dsaS9leGNlcHRpb25zLnJi
|
149
|
+
- !binary |-
|
150
|
+
bGliL2dsaS90ZXJtaW5hbC5yYg==
|
151
|
+
- !binary |-
|
152
|
+
bGliL2dsaS5yYg==
|
153
|
+
- !binary |-
|
154
|
+
bGliL2dsaV92ZXJzaW9uLnJi
|
155
|
+
- !binary |-
|
156
|
+
bGliL3N1cHBvcnQvaGVscC5yYg==
|
157
|
+
- !binary |-
|
158
|
+
bGliL3N1cHBvcnQvcmRvYy5yYg==
|
159
|
+
- !binary |-
|
160
|
+
bGliL3N1cHBvcnQvc2NhZmZvbGQucmI=
|
161
|
+
- !binary |-
|
162
|
+
bGliL3N1cHBvcnQvaW5pdGNvbmZpZy5yYg==
|
163
|
+
- !binary |-
|
164
|
+
YmluL2dsaQ==
|
165
|
+
- !binary |-
|
166
|
+
UkVBRE1FLnJkb2M=
|
167
|
+
- !binary |-
|
168
|
+
Z2xpLnJkb2M=
|
169
|
+
homepage: !binary |-
|
170
|
+
aHR0cDovL2RhdmV0cm9uNTAwMC5naXRodWIuY29tL2dsaQ==
|
121
171
|
licenses: []
|
122
172
|
post_install_message:
|
123
173
|
rdoc_options:
|
124
|
-
-
|
125
|
-
|
126
|
-
-
|
127
|
-
|
174
|
+
- !binary |-
|
175
|
+
LS10aXRsZQ==
|
176
|
+
- !binary |-
|
177
|
+
R2l0IExpa2UgSW50ZXJmYWNl
|
178
|
+
- !binary |-
|
179
|
+
LS1tYWlu
|
180
|
+
- !binary |-
|
181
|
+
UkVBRE1FLnJkb2M=
|
128
182
|
require_paths:
|
129
183
|
- lib
|
130
|
-
-
|
184
|
+
- !binary |-
|
185
|
+
bGli
|
131
186
|
required_ruby_version: !ruby/object:Gem::Requirement
|
132
187
|
none: false
|
133
188
|
requirements:
|
134
189
|
- - ! '>='
|
135
190
|
- !ruby/object:Gem::Version
|
136
191
|
version: '0'
|
192
|
+
segments:
|
193
|
+
- 0
|
194
|
+
hash: 2191873552445237645
|
137
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
196
|
none: false
|
139
197
|
requirements:
|
140
198
|
- - ! '>='
|
141
199
|
- !ruby/object:Gem::Version
|
142
200
|
version: '0'
|
201
|
+
segments:
|
202
|
+
- 0
|
203
|
+
hash: 2191873552445237645
|
143
204
|
requirements: []
|
144
|
-
rubyforge_project:
|
205
|
+
rubyforge_project: !binary |-
|
206
|
+
Z2xp
|
145
207
|
rubygems_version: 1.8.10
|
146
208
|
signing_key:
|
147
209
|
specification_version: 3
|
148
|
-
summary:
|
210
|
+
summary: !binary |-
|
211
|
+
QSBHaXQgTGlrZSBJbnRlcmZhY2UgZm9yIGJ1aWxkaW5nIGNvbW1hbmQgbGlu
|
212
|
+
ZSBhcHBz
|
149
213
|
test_files: []
|