cbr2cbz 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cbr2cbz/cli.rb +8 -3
- metadata +1 -1
data/lib/cbr2cbz/cli.rb
CHANGED
@@ -4,7 +4,7 @@ module Cbr2cbz
|
|
4
4
|
class CLI
|
5
5
|
def self.start
|
6
6
|
options = {}
|
7
|
-
OptionParser.new do |opts|
|
7
|
+
opts = OptionParser.new do |opts|
|
8
8
|
opts.banner = "Usage: cbr2cbz [options] file ..."
|
9
9
|
|
10
10
|
opts.on("-k", "--keep", "Keep original file") do |k|
|
@@ -19,9 +19,14 @@ module Cbr2cbz
|
|
19
19
|
puts opts
|
20
20
|
exit
|
21
21
|
end
|
22
|
-
end
|
22
|
+
end
|
23
|
+
opts.parse!
|
23
24
|
|
24
|
-
|
25
|
+
if ARGV.empty?
|
26
|
+
puts opts
|
27
|
+
else
|
28
|
+
Converter.new(options).convert(ARGV)
|
29
|
+
end
|
25
30
|
end
|
26
31
|
end
|
27
32
|
end
|