Module: Compass::Commands::ExtensionOptionsParser

Defined in:
lib/compass/commands/unpack_extension.rb

Instance Method Summary collapse

Instance Method Details

#set_options(opts) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/compass/commands/unpack_extension.rb', line 7

def set_options(opts)
  opts.banner = %Q{
    Usage: compass unpack EXTENSION

    Description:
      Copy an extension into your extensions folder for easy access to the source code.
      This makes it easier to peruse the source in unfamiliar projects. It is not recommended
      that you change other extensions' source -- this makes it hard to take updates from
      the original author. The following extensions are available:
      
    FRAMEWORKS
      
    Options:
  }.strip.split("\n").map{|l| l.gsub(/^ {0,10}/,'')}.join("\n")
  opts.banner.gsub!(/FRAMEWORKS/,Compass::Frameworks.pretty_print(true))
  super
end