Sha256: 90230d784164c95f6aee9323ca26cdc10f5030bea7bdd46b191c2fa2d40067d1
Contents?: true
Size: 679 Bytes
Versions: 5
Compression:
Stored size: 679 Bytes
Contents
#!/usr/bin/env ruby require 'haml_i18n_lint' require 'optparse' Version = HamlI18nLint::VERSION options = HamlI18nLint::Options.new opt = OptionParser.new opt.banner = 'Usage: haml_i18n_lint [OPTION]... [FILE]...' opt.on('-c FILE', '--config=FILE', 'configuration file') do |config_path| options.config_path = config_path end opt.on('-f PATTERN', '--files=PATTERN', "pattern to find Haml template files, default: -f '**/*.haml'") do |pattern| @pattern = pattern options.files = [@pattern] end opt.parse!(ARGV) if @pattern options.files.concat(ARGV) elsif !ARGV.empty? options.files = ARGV end runner = HamlI18nLint::Runner.new(options) ret = runner.run exit(ret)
Version data entries
5 entries across 5 versions & 1 rubygems