diff options
author | Sebastian Ludwig <sebastian@lurado.de> | 2016-11-23 00:33:41 +0300 |
---|---|---|
committer | Sebastian Ludwig <sebastian@lurado.de> | 2016-12-08 12:20:01 +0300 |
commit | ecefba05119633320cd95a2e9bc7ab54fd6d9bb6 (patch) | |
tree | 11865f7f08044cc47345e39ac2d64b6ef7a13172 /lib/twine | |
parent | f9720a67d7a6cbfd3b1ff05be3e1035923a6b661 (diff) |
Fixed #153 by removing command deprecation warning.
Diffstat (limited to 'lib/twine')
-rw-r--r-- | lib/twine/cli.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/twine/cli.rb b/lib/twine/cli.rb index 783fbfd..1132078 100644 --- a/lib/twine/cli.rb +++ b/lib/twine/cli.rb @@ -139,19 +139,6 @@ module Twine exit false end - # TODO: Remove this mapping of deprecated commands some time in the future - added on 31.03. - deprecated_command_mappings = { - 'generate-string-file' => 'generate-localization-file', - 'generate-all-string-file' => 'generate-all-localization-files', - 'consume-string-file' => 'consume-localization-file', - 'consume-all-string-files' => 'consume-all-localization-files' - } - mapped_command = deprecated_command_mappings[args[0]] - if mapped_command - Twine::stderr.puts "WARNING: Twine commands names have changed. `#{args[0]}` is now `#{mapped_command}`. The old command is deprecated will soon stop working. For more information please check the documentation at https://github.com/mobiata/twine" - args[0] = mapped_command - end - number_of_needed_arguments = NEEDED_COMMAND_ARGUMENTS[args[0]] unless number_of_needed_arguments raise Twine::Error.new "Invalid command: #{args[0]}" |