Skip to content

Commit

Permalink
Fixes #441 livereload by default for auto & dev
Browse files Browse the repository at this point in the history
Livereload is enabled by default if your are using -a, --auto, -d or
--dev. I figured if you're going to be auto regen on changes, you might
as well use livereload as well.
  • Loading branch information
LightGuard committed Oct 24, 2014
1 parent f0259ca commit 75d9aff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/awestruct/cli/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ def parse!(args)
self.auto = true
self.port = DEFAULT_PORT
self.profile = 'development'
self.livereload = livereload
end
opts.on( '-a', '--auto', 'Auto-generate when changes are noticed' ) do |a|
self.auto = a
self.livereload = livereload
end
opts.on( '--livereload', 'Support for browser livereload' ) do |livereload|
self.livereload = livereload
Expand Down

0 comments on commit 75d9aff

Please sign in to comment.