#!/usr/bin/env ruby require 'babel_diff' help = <<-HELP usages: babel_import [defaults to 'config/locales/'] Imports all phrase files in the and merges them with the phrase files in . Existing keys will be overwritten. babel_diff [defaults to 'config/locales/phrase.en.yml'] Produces two files containing all updates and all additions to the given phrase file located at since babel_diff last ran. HELP case ARGV.first when "--help" puts help exit 0 when nil BabelDiff.generate_diffs else BabelDiff.generate_diffs(ARGV[0]) end