Class: Compass::Commands::Help
- Inherits:
-
Base
- Object
- Base
- Compass::Commands::Help
show all
- Defined in:
- lib/compass/commands/help.rb
Instance Attribute Summary
Attributes inherited from Base
#options, #working_path
Attributes included from Actions
#logger
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #perform, register
Methods included from Actions
#basename, #compile, #copy, #directory, #process_erb, #relativize, #remove, #separate, #strip_trailing_separator, #write_file
Class Method Details
.description(command) ⇒ Object
65
66
67
|
# File 'lib/compass/commands/help.rb', line 65
def description(command)
"Get help on a compass command or extension"
end
|
.option_parser(arguments) ⇒ Object
.parse!(arguments) ⇒ Object
68
69
70
71
72
73
|
# File 'lib/compass/commands/help.rb', line 68
def parse!(arguments)
parser = option_parser(arguments)
parser.parse!
parser.options[:help_command] = arguments.shift || 'help'
parser.options
end
|
.usage ⇒ Object
62
63
64
|
# File 'lib/compass/commands/help.rb', line 62
def usage
option_parser([]).to_s
end
|