gli 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/gli.rb +4 -4
  2. metadata +2 -2
data/lib/gli.rb CHANGED
@@ -12,7 +12,7 @@ require 'support/rdoc.rb'
12
12
  module GLI
13
13
  extend self
14
14
 
15
- VERSION = '0.2.1'
15
+ VERSION = '0.3.0'
16
16
 
17
17
  @@program_name = $0.split(/\//)[-1]
18
18
  @@post_block = nil
@@ -187,7 +187,7 @@ module GLI
187
187
  raise "Unknown command '#{command_name}'" if !command
188
188
  return parse_options_helper(args,global_options,command,command_options,arguments)
189
189
  else
190
- return global_options,command,command_options,arguments | args
190
+ return global_options,command,command_options,arguments + args
191
191
  end
192
192
  elsif non_flag_i == -1
193
193
  all_flags = true
@@ -228,7 +228,7 @@ module GLI
228
228
  else
229
229
  if command
230
230
  check = rest
231
- check = rest | try_me if all_flags
231
+ check = rest + try_me if all_flags
232
232
  check.each() do |arg|
233
233
  if arg =~ /^\-\-$/
234
234
  try_me.delete arg
@@ -236,7 +236,7 @@ module GLI
236
236
  end
237
237
  raise "Unknown argument #{arg}" if arg =~ /^\-/
238
238
  end
239
- return [global_options,command,command_options,try_me | rest]
239
+ return [global_options,command,command_options,try_me + rest]
240
240
  else
241
241
  # Now we have our command name
242
242
  command_name = try_me.shift
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Copeland
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-25 00:00:00 -04:00
12
+ date: 2009-08-27 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15