cbr2cbz 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cbr2cbz/cli.rb +8 -3
  2. metadata +1 -1
@@ -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.parse!
22
+ end
23
+ opts.parse!
23
24
 
24
- Converter.new(options).convert(ARGV)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbr2cbz
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: