Sha256: 762062ef6aea1e8f158cbd753d97b3e1a6c941e6dad569beefd59d35a96f3f69

Contents?: true

Size: 938 Bytes

Versions: 10

Compression:

Stored size: 938 Bytes

Contents

# frozen_string_literal: true
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

10 entries across 10 versions & 1 rubygems

Version Path
i18n-tasks-0.9.12 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.11 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.10 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.9 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.8 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.7 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.6 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.5 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.4 lib/i18n/tasks/command/options/locales.rb
i18n-tasks-0.9.3 lib/i18n/tasks/command/options/locales.rb