Class: StyleVacuumOpts

Inherits:
ToolOpts show all
Defined in:
lib/shed/opts/style_vacuum_opts.rb

Overview

Manages the command line interface for the style vacuum tool.

Class Method Summary collapse

Methods inherited from ToolOpts

add_optional, add_tail, create_parser, parse, version

Class Method Details

.add_mandatory(op, config) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/shed/opts/style_vacuum_opts.rb', line 23

def self.add_mandatory(op,config)
  superclass.add_mandatory(op,config)

  op.on("-c", "--css PATH", "Path to the directory containing css file/s.") do |value|
    config[:css_dir] = value
  end
end

.default_configObject



16
17
18
19
20
21
# File 'lib/shed/opts/style_vacuum_opts.rb', line 16

def self.default_config
  dc = superclass.default_config
  dc[:output] = 'styles.txt'
  dc[:css_dir] = 'style'
  dc
end

.descriptionObject



12
13
14
# File 'lib/shed/opts/style_vacuum_opts.rb', line 12

def self.description
  "ActionScript Style Vacuum Tool"
end

.nameObject



8
9
10
# File 'lib/shed/opts/style_vacuum_opts.rb', line 8

def self.name
  "as-style-vacuum"
end