Class: ClassVacuumOpts
Overview
Manages the command line interface for the class 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
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/shed/opts/class_vacuum_opts.rb', line 24
def self.add_mandatory(op,config)
superclass.add_mandatory(op,config)
op.on("-m", "--manifest FILE", "Path to the source manifest file.") do |value|
config[:manifest] = value
end
op.on("-l", "--link-report FILE", "Path to the compiler link-report file.") do |value|
config[:link_report] = value
end
end
|
.default_config ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/shed/opts/class_vacuum_opts.rb', line 16
def self.default_config
dc = superclass.default_config
dc[:output] = 'class-vacuum.txt'
dc[:manifest] = 'manifest.xml'
dc[:link_report] = 'link-report.xml'
dc
end
|
.description ⇒ Object
12
13
14
|
# File 'lib/shed/opts/class_vacuum_opts.rb', line 12
def self.description
"ActionScript Class Vacuum Tool"
end
|
.name ⇒ Object
8
9
10
|
# File 'lib/shed/opts/class_vacuum_opts.rb', line 8
def self.name
"as-class-vacuum"
end
|