Skip to content
Browse files

Allow custom environments

Some usecases require environments like `staging` or `qa`
  • Loading branch information...
1 parent 9ee6b42 commit fe65dcd81613c2c1647e5cd246d600a257c6b03b raphaeleidus committed Jun 21, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/compass/exec/project_options_parser.rb
View
6 lib/compass/exec/project_options_parser.rb
@@ -44,9 +44,9 @@ def set_project_options(opts)
set_dir_or_path(:fonts, fonts_dir)
end
- opts.on('-e ENV', '--environment ENV', [:development, :production], 'Use sensible defaults for your current environment.',
- ' One of: development (default), production') do |env|
- self.options[:environment] = env
+ opts.on('-e ENV', '--environment ENV', 'Use sensible defaults for your current environment.',
+ ' defaults to development') do |env|
+ self.options[:environment] = env || :development
end
opts.on('-s STYLE', '--output-style STYLE', [:nested, :expanded, :compact, :compressed], 'Select a CSS output mode.',

0 comments on commit fe65dcd

Please sign in to comment.
Something went wrong with that request. Please try again.