bin/ninjs in ninjs-0.13.2 vs bin/ninjs in ninjs-0.13.3

- old
+ new

@@ -99,11 +99,11 @@ options = { :alias => false, :elements => false, :model => false, :help => false, - :compress => false + :compress => nil } optparse = OptionParser.new do|opts| opts.on( '-h', '--help', 'Display this screen' ) do options[:help] = true @@ -194,12 +194,15 @@ when "compile" if options[:help] puts help[:compile] exit end - - compress_output = options[:compress] ? true : false - Ninjs::Command.compile(compress_output) + + unless options[:compress].nil? + Ninjs::Command.compile(options[:compress]) + else + Ninjs::Command.compile() + end # watch when "watch" if options[:help] puts help[:watch] exit \ No newline at end of file