Sha256: 113fadd66fa67e62f365c1916c80b41b46092f232c65851f685ee827c203495a
Contents?: true
Size: 607 Bytes
Versions: 5
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
5 entries across 5 versions & 1 rubygems