Sha256: 1c4094ee8539fff747ab2267020a895cd529b7bff8c0410d3375861f778c3b74

Contents?: true

Size: 1023 Bytes

Versions: 15

Compression:

Stored size: 1023 Bytes

Contents

module Compass::Exec::GlobalOptionsParser
  def set_options(opts)
    super
    set_global_options(opts)
  end
  def set_global_options(opts)
    opts.on('-r LIBRARY', '--require LIBRARY',
            "Require the given ruby LIBRARY before running commands.",
            "  This is used to access compass plugins without having a",
            "  project configuration file.") do |library|
      ::Compass.configuration.require library
            end

    opts.on('-q', '--quiet', :NONE, 'Quiet mode.') do
      self.options[:quiet] = true
    end

    opts.on('--trace', :NONE, 'Show a full stacktrace on error') do
      self.options[:trace] = true
    end

    opts.on('--force', :NONE, 'Allows some failing commands to succeed instead.') do
      self.options[:force] = true
    end

    opts.on('--dry-run', :NONE, 'Dry Run. Tells you what it plans to do.') do
      self.options[:dry_run] = true
    end

    opts.on_tail("-?", "-h", "--help", "Show this message") do
      puts opts
      exit
    end

  end

end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
middleman-0.13.1 lib/middleman/vendor/gems/ruby/1.9.1/gems/compass-0.10.0.pre4/lib/compass/exec/global_options_parser.rb
compass-0.10.0.pre4 lib/compass/exec/global_options_parser.rb
compass-0.10.0.pre3 lib/compass/exec/global_options_parser.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/exec/global_options_parser.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/exec/global_options_parser.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/exec/global_options_parser.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/compass/exec/global_options_parser.rb
compass-0.10.0.pre2 lib/compass/exec/global_options_parser.rb
compass-0.10.0.pre1 lib/compass/exec/global_options_parser.rb
compass-edge-0.9.5.0 lib/compass/exec/global_options_parser.rb
compass-edge-0.9.4 lib/compass/exec/global_options_parser.rb
compass-edge-0.9.3 lib/compass/exec/global_options_parser.rb
compass-edge-0.9.2 lib/compass/exec/global_options_parser.rb
compass-edge-0.9.1 lib/compass/exec/global_options_parser.rb
compass-edge-0.10.0.pre lib/compass/exec/global_options_parser.rb