METRICS_FILES = FileList['lib/**/*.rb']

task :flog do
  sh "flog #{METRICS_FILES}"
end

task :flay do
  sh "flay #{METRICS_FILES}"
end

METRICS_FILES = FileList['lib/**/*.rb']

task :flog, [:all] do |t, args|
  flags = args.all ? "--all" : ""
  sh "flog #{flags} #{METRICS_FILES}"
end

task :flay do
  sh "flay #{METRICS_FILES}"
end

Add optional all flag to flog task.
Add optional all flag to flog task.
