lib/autotestforphp/cli.rb in fgrehm-autotestforphp-0.0.1 vs lib/autotestforphp/cli.rb in fgrehm-autotestforphp-0.0.2
- old
+ new
@@ -1,10 +1,10 @@
require 'optparse'
class Autotestforphp
class CLI
def self.execute(stdout, arguments=['--run'])
- arguments = ['--run'] unless arguments.count > 0 # defaults to run
+ arguments = ['--run'] unless arguments.size > 0 # defaults to run
OptionParser.new do |opts|
opts.banner = <<-BANNER.gsub(/^ /,'')
Usage: #{File.basename($0)} [options]
\ No newline at end of file