Skip to content

Commit

Permalink
Make the project_path variable setable as an --app-dir option on CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
androa committed Feb 5, 2013
1 parent c47a428 commit 5ce4dc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/compass/exec/project_options_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def set_project_options(opts)
self.options[:project_type] = project_type.to_sym
end

opts.on('--app-dir PATH', 'The base directory for your application.') do |project_path|
self.options[:project_path] = project_path
end

opts.on('--sass-dir SRC_DIR', "The source directory where you keep your sass stylesheets.") do |sass_dir|
set_dir_or_path(:sass, sass_dir)
end
Expand All @@ -35,7 +39,7 @@ def set_project_options(opts)
opts.on('--javascripts-dir JS_DIR', "The directory where you keep your javascripts.") do |javascripts_dir|
set_dir_or_path(:javascripts, javascripts_dir)
end

opts.on('--fonts-dir FONTS_DIR', "The directory where you keep your fonts.") do |fonts_dir|
set_dir_or_path(:fonts, fonts_dir)
end
Expand Down

0 comments on commit 5ce4dc0

Please sign in to comment.