def run(*command_line)
config = Config.new
config.parse(command_line)
parser = POParser.new
parser.ignore_fuzzy = false
definition_po = PO.new
reference_pot = PO.new
parser.parse_file(config.definition_po, definition_po)
parser.parse_file(config.reference_pot, reference_pot)
merger = Merger.new(reference_pot, definition_po, config)
result = merger.merge
result.order = config.order
p result if $DEBUG
print result.generate_po if $DEBUG
if config.output.is_a?(String)
File.open(File.expand_path(config.output), "w+") do |file|
file.write(result.to_s(config.po_format_options))
end
else
puts(result.to_s(config.po_format_options))
end
end