Sha256: 679354e664b30a8411fd40bff42f1a259ed0e46d01b1df4705d6568a325ef4aa
Contents?: true
Size: 607 Bytes
Versions: 3
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true require 'optparse' class TexturePacker::Cli::Options attr_reader :hook_run attr_reader :project_dir def initialize(argv) OptionParser.new do |opts| opts.on('-v', '--version', 'show the version number') do @hook_run = ->{ puts(TexturePacker::VERSION) } end opts.on("-h", "--help", "Prints this help") do @hook_run = ->{ puts(opts) } end opts.on("-pPATH", "--project_dir=PATH", "Copy the generated scss files / images to specified project") do |val| @project_dir = val end end.parse!(argv) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
texture_packer-1.5.0 | lib/texture_packer/cli/options.rb |
texture_packer-1.4.1 | lib/texture_packer/cli/options.rb |
texture_packer-1.4.0 | lib/texture_packer/cli/options.rb |