fassbinder 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fassbinder/cli.rb +4 -6
- data/lib/fassbinder/version.rb +1 -1
- metadata +1 -1
data/lib/fassbinder/cli.rb
CHANGED
@@ -5,18 +5,16 @@ require 'fassbinder'
|
|
5
5
|
module Fassbinder
|
6
6
|
class CLI < Thor
|
7
7
|
desc 'all', 'Looks up all offers for an ASIN'
|
8
|
-
method_option :locale, :
|
8
|
+
method_option :locale, :aliases => '-l', :default => :us
|
9
9
|
def all(asin)
|
10
|
-
|
11
|
-
lookup(asin, locale)
|
10
|
+
lookup(asin, options[:locale])
|
12
11
|
end
|
13
12
|
map 'a' => 'all'
|
14
13
|
|
15
14
|
desc 'kosher', 'Looks up kosher offers for an ASIN'
|
16
|
-
method_option :locale, :
|
15
|
+
method_option :locale, :aliases => '-l', :default => :us
|
17
16
|
def kosher(asin)
|
18
|
-
|
19
|
-
lookup(asin, locale, true)
|
17
|
+
lookup(asin, options[:locale], true)
|
20
18
|
end
|
21
19
|
map 'k' => 'kosher'
|
22
20
|
|
data/lib/fassbinder/version.rb
CHANGED