Sha256: 9182772700da269fa3007e12923f0bddee93d5e210c13c6661e12860e2118fb6
Contents?: true
Size: 1.11 KB
Versions: 16
Compression:
Stored size: 1.11 KB
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('--boring', :NONE, 'Turn off colorized output.') do self.options[:color_output] = false end opts.on_tail("-?", "-h", "--help", "Show this message") do puts opts exit end end end
Version data entries
16 entries across 16 versions & 2 rubygems