lib/compass/commands/create_project.rb in compass-edge-0.9.5.0 vs lib/compass/commands/create_project.rb in compass-edge-0.10.0.pre
- old
+ new
@@ -13,14 +13,10 @@
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,19 +62,14 @@
else
"Initialize an existing project"
end
end
- def primary; true; end
-
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)
@@ -99,10 +90,10 @@
def parse_arguments!(parser, arguments)
if arguments.size == 1
parser.options[:project_name] = arguments.shift
elsif arguments.size == 0
- # default to the current directory.
+ raise Compass::Error, "Please specify a path to the project."
else
raise Compass::Error, "Too many arguments were specified."
end
end