lib/awestruct/cli/options.rb in awestruct-0.5.7 vs lib/awestruct/cli/options.rb in awestruct-0.6.0.RC1
- old
+ new
@@ -34,11 +34,11 @@
attr_accessor :perf_log
def initialize(opts = {})
default_opts = { server: false, port: DEFAULT_PORT, bind_addr: DEFAULT_BIND_ADDR, auto: false, force: false,
init: false, framework: 'compass', scaffold: true, base_url: DEFAULT_BASE_URL, deploy: false,
- verbose: false, quiet: false, livereload: false, source_dir: Dir.pwd,
+ verbose: false, quiet: false, livereload: false, source_dir: Dir.pwd, debug: false,
output_dir: File.expand_path('_site'), generate_on_access: DEFAULT_GENERATE_ON_ACCESS,
perf_log: false
}.merge opts
@generate = default_opts[:generate]
@server = default_opts[:server]
@@ -58,9 +58,10 @@
@livereload = default_opts[:livereload]
@source_dir = default_opts[:source_dir]
@output_dir = default_opts[:output_dir]
@generate_on_access = default_opts[:generate_on_access]
@perf_log = default_opts[:perf_log]
+ @debug = default_opts[:debug]
end
def self.parse!(args)
Options.new({output_dir: nil}).parse! args
end