lib/awestruct/cli/options.rb in awestruct-0.5.4.2 vs lib/awestruct/cli/options.rb in awestruct-0.5.5
- old
+ new
@@ -122,9 +122,10 @@
#opts.on( '--run SCRIPT', 'Invoke a script after initialization' ) do |script|
# self.script = script
#end
opts.on( '--source-dir DIR', 'Location of sources (default: .' ) do |source_dir|
self.source_dir = File.expand_path source_dir
+ self.output_dir = File.expand_path File.join(self.source_dir, '_site')
end
opts.on( '--output-dir DIR', 'Location to output generated site (default: _site' ) do |output_dir|
self.output_dir = File.expand_path output_dir
end