gli 1.3.7 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/gli.rb +7 -0
  2. data/lib/gli_version.rb +1 -1
  3. 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
@@ -1,3 +1,3 @@
1
1
  module GLI
2
- VERSION = '1.3.7'
2
+ VERSION = '1.4.0'
3
3
  end
metadata CHANGED
@@ -1,149 +1,213 @@
1
1
  --- !ruby/object:Gem::Specification
2
- name: gli
2
+ name: !binary |-
3
+ Z2xp
3
4
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
5
+ version: 1.4.0
5
6
  prerelease:
6
7
  platform: ruby
7
8
  authors:
8
- - David Copeland
9
+ - !binary |-
10
+ RGF2aWQgQ29wZWxhbmQ=
9
11
  autorequire:
10
- bindir: bin
12
+ bindir: !binary |-
13
+ Ymlu
11
14
  cert_chain: []
12
- date: 2011-11-21 00:00:00.000000000Z
15
+ date: 2011-12-02 00:00:00.000000000 Z
13
16
  dependencies:
14
17
  - !ruby/object:Gem::Dependency
15
- name: rake
16
- requirement: &70320504630840 !ruby/object:Gem::Requirement
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: 0.9.2.2
26
+ version: !binary |-
27
+ MC45LjIuMg==
22
28
  type: :development
23
29
  prerelease: false
24
- version_requirements: *70320504630840
30
+ version_requirements: *70327485435980
25
31
  - !ruby/object:Gem::Dependency
26
- name: rdoc
27
- requirement: &70320504629940 !ruby/object:Gem::Requirement
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: '3.11'
40
+ version: !binary |-
41
+ My4xMQ==
33
42
  type: :development
34
43
  prerelease: false
35
- version_requirements: *70320504629940
44
+ version_requirements: *70327485434940
36
45
  - !ruby/object:Gem::Dependency
37
- name: reek
38
- requirement: &70320504629000 !ruby/object:Gem::Requirement
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: 1.2.0
54
+ version: !binary |-
55
+ MS4yLjA=
44
56
  type: :development
45
57
  prerelease: false
46
- version_requirements: *70320504629000
58
+ version_requirements: *70327485434360
47
59
  - !ruby/object:Gem::Dependency
48
- name: roodi
49
- requirement: &70320504619740 !ruby/object:Gem::Requirement
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: 2.1.0
68
+ version: !binary |-
69
+ Mi4xLjA=
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70320504619740
72
+ version_requirements: *70327485433260
58
73
  - !ruby/object:Gem::Dependency
59
- name: grancher
60
- requirement: &70320504618780 !ruby/object:Gem::Requirement
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: 0.1.5
82
+ version: !binary |-
83
+ MC4xLjU=
66
84
  type: :development
67
85
  prerelease: false
68
- version_requirements: *70320504618780
86
+ version_requirements: *70327485431940
69
87
  - !ruby/object:Gem::Dependency
70
- name: rainbow
71
- requirement: &70320504617960 !ruby/object:Gem::Requirement
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: 1.1.1
96
+ version: !binary |-
97
+ MS4xLjE=
77
98
  type: :development
78
99
  prerelease: false
79
- version_requirements: *70320504617960
100
+ version_requirements: *70327485431220
80
101
  - !ruby/object:Gem::Dependency
81
- name: aruba
82
- requirement: &70320504617020 !ruby/object:Gem::Requirement
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: 0.4.6
110
+ version: !binary |-
111
+ MC40Ljc=
88
112
  type: :development
89
113
  prerelease: false
90
- version_requirements: *70320504617020
91
- description: An application and API for describing command line interfaces that can
92
- be used to quickly create a shell for executing command-line tasks. The command
93
- line user interface is similar to Gits, in that it takes global options, a command,
94
- command-specific options, and arguments
95
- email: davidcopeland@naildrivin5.com
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
- - gli
126
+ - !binary |-
127
+ Z2xp
98
128
  extensions: []
99
129
  extra_rdoc_files:
100
- - README.rdoc
101
- - gli.rdoc
130
+ - !binary |-
131
+ UkVBRE1FLnJkb2M=
132
+ - !binary |-
133
+ Z2xpLnJkb2M=
102
134
  files:
103
- - lib/gli/command.rb
104
- - lib/gli/command_line_token.rb
105
- - lib/gli/copy_options_to_aliases.rb
106
- - lib/gli/flag.rb
107
- - lib/gli/switch.rb
108
- - lib/gli/options.rb
109
- - lib/gli/exceptions.rb
110
- - lib/gli/terminal.rb
111
- - lib/gli.rb
112
- - lib/gli_version.rb
113
- - lib/support/help.rb
114
- - lib/support/rdoc.rb
115
- - lib/support/scaffold.rb
116
- - lib/support/initconfig.rb
117
- - bin/gli
118
- - README.rdoc
119
- - gli.rdoc
120
- homepage: http://davetron5000.github.com/gli
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
- - --title
125
- - Git Like Interface
126
- - --main
127
- - README.rdoc
174
+ - !binary |-
175
+ LS10aXRsZQ==
176
+ - !binary |-
177
+ R2l0IExpa2UgSW50ZXJmYWNl
178
+ - !binary |-
179
+ LS1tYWlu
180
+ - !binary |-
181
+ UkVBRE1FLnJkb2M=
128
182
  require_paths:
129
183
  - lib
130
- - lib
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: gli
205
+ rubyforge_project: !binary |-
206
+ Z2xp
145
207
  rubygems_version: 1.8.10
146
208
  signing_key:
147
209
  specification_version: 3
148
- summary: A Git Like Interface for building command line apps
210
+ summary: !binary |-
211
+ QSBHaXQgTGlrZSBJbnRlcmZhY2UgZm9yIGJ1aWxkaW5nIGNvbW1hbmQgbGlu
212
+ ZSBhcHBz
149
213
  test_files: []