lib/awestruct/cli/options.rb in awestruct-0.5.6.beta4 vs lib/awestruct/cli/options.rb in awestruct-0.5.6.beta5
- old
+ new
@@ -95,15 +95,15 @@
opts.on( '-d', '--dev', "Run site in development mode (--auto, --server, --port #{DEFAULT_PORT} and --profile development)" ) do |url|
self.server = true
self.auto = true
self.port = DEFAULT_PORT
self.profile = 'development'
- self.livereload = livereload
+ self.livereload = true
end
opts.on( '-a', '--auto', 'Auto-generate when changes are noticed' ) do |a|
self.auto = a
- self.livereload = livereload
+ self.livereload = true
end
opts.on( '--livereload', 'Support for browser livereload' ) do |livereload|
self.livereload = livereload
end
@@ -151,9 +151,13 @@
exit
end
end
opts.parse!(args)
+ self.base_url ||= DEFAULT_BASE_URL
+ self.port ||= DEFAULT_PORT
+ self.bind_addr ||= DEFAULT_BIND_ADDR
+
self.generate = true if self.generate.nil?
self
end # parse()
end