bin/mizuho in FooBarWidget-mizuho-0.9.1 vs bin/mizuho in FooBarWidget-mizuho-0.9.2
- old
+ new
@@ -19,10 +19,13 @@
opts.on("--icons-dir DIR", "Specify the directory in which icons\n" <<
"#{' ' * 37}should be searched. Defaults to\n" <<
"#{' ' * 37}'images/icons'.") do |value|
options[:icons_dir] = value
end
+ opts.on("-o", "--output FILE", String, "Specify the output filename.") do |value|
+ options[:output] = value
+ end
end
begin
parser.parse!
rescue OptionParser::ParseError => e
puts e
@@ -32,12 +35,12 @@
end
begin
if ARGV.empty?
puts parser
+ exit 1
else
- Mizuho::Generator.new(ARGV[0], nil, options[:template],
- options[:multi_page], options[:icons_dir]).start
+ Mizuho::Generator.new(ARGV[0], options).start
end
rescue Mizuho::GenerationError
STDERR.puts "*** ERROR"
exit 2
end