bin/bumbler in bumbler-0.2.0 vs bin/bumbler in bumbler-0.2.1

- old
+ new

@@ -1,6 +1,23 @@ #!/usr/bin/env ruby $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') + +require 'optparse' +require 'bumbler' + +OptionParser.new do |parser| + parser.banner = <<BANNER +Bumbler shows how long loading your bundle components take. + +Usage: + bumbler + +Options: +BANNER + parser.on("-h", "--help","Show this.") { puts parser; exit } + parser.on('-v', '--version','Show Version'){ puts Bumbler::VERSION; exit} +end.parse! + require 'bumbler/go' require './config/environment' $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') # bundler kicks us out Bumbler::Stats.all_slow_items