Sha256: 074bd256146509fa0aa28fd42db45cdc270ea999ea7cd0b5918942b0ab327402

Contents?: true

Size: 908 Bytes

Versions: 13

Compression:

Stored size: 908 Bytes

Contents

require 'i18n/tasks/command/option_parsers/locale'

module I18n::Tasks
  module Command
    module Options
      module Locales
        include Command::DSL

        arg :locales,
            '-l',
            '--locales en,es,ru',
            Array,
            t('i18n_tasks.cmd.args.desc.locales_filter'),
            parser:             OptionParsers::Locale::ListParser,
            default:            'all',
            consume_positional: true

        arg :locale,
            '-l',
            '--locale en',
            t('i18n_tasks.cmd.args.desc.locale'),
            parser:  OptionParsers::Locale::Parser,
            default: 'base'

        arg :locale_to_translate_from,
            '-f',
            '--from en',
            t('i18n_tasks.cmd.args.desc.locale_to_translate_from'),
            parser:  OptionParsers::Locale::Parser,
            default: 'base'
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
i18n-tasks-0.9.2 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.1 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.0 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.0.rc2 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.8.7 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.0.rc1 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.8.6 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.8.5 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.8.4 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.8.3 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.8.2 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.8.1 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.8.0 lib/i18n/tasks/command/options/locales.rb