lib/compass/commands/create_project.rb in compass-edge-0.9.1 vs lib/compass/commands/create_project.rb in compass-edge-0.9.2

- old
+ new

@@ -13,10 +13,14 @@ Description: Create a new compass project at the path specified. Options: }.split("\n").map{|l| l.gsub(/^ */,'')}.join("\n") + + opts.on_tail("--bare", "Don't generate any Sass or CSS files.") do + self.options[:bare] = true + end else opts.banner = %Q{ Usage: compass init project_type path/to/project [options] Description: @@ -66,10 +70,13 @@ def parse!(arguments) parser = option_parser(arguments) parse_options!(parser, arguments) parse_arguments!(parser, arguments) + if parser.options[:framework] && parser.options[:bare] + raise Compass::Error, "A bare project cannot be created when a framework is specified." + end set_default_arguments(parser) parser.options end def parse_init!(arguments) @@ -90,10 +97,10 @@ def parse_arguments!(parser, arguments) if arguments.size == 1 parser.options[:project_name] = arguments.shift elsif arguments.size == 0 - raise Compass::Error, "Please specify a path to the project." + # default to the current directory. else raise Compass::Error, "Too many arguments were specified." end end