extract-har-files.rb
# usage function to display help for the hapless user
usage function to display help for the hapless user
usage function to display help for the hapless user
def usage
  mycmd = File.basename($0)
  puts mycmd
  puts "usage: #{mycmd} <har file> [output dir] [[file pattern] ...]"
  puts
  puts "Extract files matching the pattern(s) from the har file, place them in the output dir"
  puts "If no file patterns (or output directory) are provided, the files are listed."
  puts
  puts "Got #{ARGV}"
end
def usage mycmd = File . basename ( $0 ) puts mycmd puts "usage: #{mycmd} <har file> [output dir] [[file pattern] ...]" puts puts "Extract files matching the pattern(s) from the har file, place them in the output dir" puts "If no file patterns (or output directory) are provided, the files are listed." puts puts "Got #{ARGV}" end
usage function to display help for the hapless user
usage function to display help for the hapless user