bin/babel_diff in babel_diff-1.0.3 vs bin/babel_diff in babel_diff-1.1.0

- old
+ new

@@ -1,4 +1,27 @@ #!/usr/bin/env ruby require 'babel_diff' -BabelDiff.run +help = <<-HELP +usages: + +babel_import <import_dir> <phrase_dir> [defaults to 'config/locales/'] + +Imports all phrase files in the <import_dir> and merges them with the phrase files in <phrase_dir>. +Existing keys will be overwritten. + +babel_diff <phrase_file_path> [defaults to 'config/locales/phrase.en.yml'] + +Produces two files containing all updates and all additions to the given phrase file located at <phrase_file_path> 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 +