clint 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/clint.rb +1 -1
- data/man/man7/clint.7.gz +0 -0
- metadata +3 -3
data/lib/clint.rb
CHANGED
@@ -181,7 +181,7 @@ class Clint
|
|
181
181
|
exit 1
|
182
182
|
end
|
183
183
|
instance = klass.new(*@args.slice!(0, arity))
|
184
|
-
if instance.public_methods(false).
|
184
|
+
if instance.public_methods(false).any? {|m| m == subcommand || m == subcommand.to_s }
|
185
185
|
arity = instance.method(subcommand).arity
|
186
186
|
if @args.length != arity && -@args.length - 1 != arity
|
187
187
|
usage
|
data/man/man7/clint.7.gz
CHANGED
Binary file
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 3
|
9
|
+
version: 0.2.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Richard Crowley
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-11 00:00:00 +00:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|