kommand 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kommand/scripts/script.rb +3 -3
- data/lib/kommand/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b5aa41925a11edfed6b7adeb85e2bede5734442
|
4
|
+
data.tar.gz: 55be7e210ab341fdb8def85653cfe4790c816e6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0edec37fb0149bb4f6ffce5a62cb96a1d616bd18ac3abafd5343ef37a9959b574aa1d14cf3cf1146bb6b5248d0931eb6a5aaf4ec49ec0a653e20d078af881454
|
7
|
+
data.tar.gz: 693e7d4981bcbc6ed7b8f75f6c5184ace268d00c7ff917e29dc4c199095504e3be004a2b397b94be91e7e10a0b8888f09d458446f8a33f0105ed5aa1d952f4ce
|
@@ -74,9 +74,9 @@ module Kommand
|
|
74
74
|
next
|
75
75
|
end
|
76
76
|
|
77
|
-
# swap key/val to create an unnamed arg - if
|
78
|
-
# a
|
79
|
-
if (!args[a+1] || valid_argument?(args[a+1])) && (argv.nil? || argv.empty?) && !Commands::exists?(arg)
|
77
|
+
# swap key/val to create an unnamed arg - if we're not a valid arg and we're the last argument or the
|
78
|
+
# next argument is a valid arg we must be an unnamed argument
|
79
|
+
if !valid_argument?(argk) && (!args[a+1] || valid_argument?(parse_arg(args[a+1])[0])) && (argv.nil? || argv.empty?) && !Commands::exists?(arg)
|
80
80
|
argv = argk
|
81
81
|
argk = nil
|
82
82
|
end
|
data/lib/kommand/version.rb
CHANGED