argparse 0.0.2 → 0.0.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
  SHA256:
3
- metadata.gz: 8c47aa7c1a5561464ce640ae7b32a0a502206de110266fe279ef41a13b8c946d
4
- data.tar.gz: 69ff2ea44dd42997dd375451994d4fa59bc1263da32885d416e0729f3f05a93e
3
+ metadata.gz: 0cb11ad769ff1b09a313a9aab003b3834788cb1f5da850ef48b286584bd7ec5b
4
+ data.tar.gz: f8bf4785f883aa85b1ddb2f2258a85e2954150b35c047380e5b51ee3fe587ce9
5
5
  SHA512:
6
- metadata.gz: c8172e339f33260c3c3b3d6a01ebe4787b042c15af1306c26e51f76690575c435a24e2a2ec8bb932d0b876cb91f42a8b97a40df8d928fcde4bd3be894a2f4523
7
- data.tar.gz: 29daa4c7e3cdfe82a0d93a40001209d3e59a418945ec13089f12a84dabf01c29258e0a4604921c84f7f7f292766cd598bc2496f65b0864cab658c6d7775e15e5
6
+ metadata.gz: 0e2b30bb83cf0723745eed7ae3122aa76119402874e3bac101b7dd2d0f87414c77b42b4d44e5304a554c45733cd74d537e234c0f871806d1c6487df76d59c91a
7
+ data.tar.gz: e9e3687e969265206714cf8ea110e0e26707fee3100bf1ff6c12c91b6a2740a6c1428f24c1045585d14b37780780727bde33cc17f5e1306906ea3d5bd6f7ea6e
Binary file
@@ -29,8 +29,10 @@ module ArgsParser
29
29
  a = b[0].split("")
30
30
 
31
31
  rmode = :new_switch
32
+ c = 0
32
33
  a.each do |x|
33
34
  x = x.to_sym
35
+ c = c + 1
34
36
 
35
37
  if rmode == :new_switch
36
38
  if expected_switches.keys.include?(x)
@@ -46,7 +48,7 @@ module ArgsParser
46
48
  end
47
49
  end
48
50
  elsif rmode[:arg_for_switch]
49
- @@switches[rmode[:arg_for_switch]][:arg] = x
51
+ @@switches[rmode[:arg_for_switch]][:arg] = arg[c..arg.length-1]
50
52
  rmode = :new_switch
51
53
  end
52
54
  end
@@ -1,3 +1,3 @@
1
1
  module ArgsParser
2
- Version = "0.0.2"
2
+ Version = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: argparse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Lee
@@ -16,6 +16,7 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - argparse-0.0.2.gem
19
20
  - argsparser.gemspec
20
21
  - lib/argparse.rb
21
22
  - lib/argsparser.rb