Fix possible crash when consuming Android string files.

Twine would crash if --tags were supplied on the command line. This
parameter is undocumented for consume-string-file. It shouldn't do
anything (at least not yet).

Fixes #23
This commit is contained in:
Sebastian Celis 2013-02-07 16:21:48 -06:00
parent f191da57db
commit 8e453c1995

View file

@ -74,9 +74,6 @@ module Twine
else
value = ""
end
if @options[:tags]
set_tags_for_key(key, @options[:tags])
end
set_translation_for_key(key, lang, value)
if comment and comment.length > 0 and !comment.start_with?("SECTION:")
set_comment_for_key(key, comment)