bin/oddb2xml in oddb2xml-0.0.1 vs bin/oddb2xml in oddb2xml-0.0.2
- old
+ new
@@ -5,11 +5,19 @@
root = Pathname.new(__FILE__).realpath.parent.parent
$:.unshift root.join('lib') if $0 == __FILE__
require 'oddb2xml'
-ui = Oddb2xml::Cli.new
-unless ARGV.empty?
+# TODO: Parse option
+args = ARGV.dup
+opts = {}
+if args == ['-c', 'tar.gz']
+ opts = {:compress => 'tar.gz'}
+ args = {}
+end
+
+ui = Oddb2xml::Cli.new(opts)
+unless args.empty?
ui.help
else
begin
ui.run
rescue Interrupt