organize_photos.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} <in dir 1> [[in dir 2] ...] -- <out dir 1> [[out dir 2] ...]"
  puts
  puts "Copy files from 'in' dirs to matching 'out' dirs by checking dates."
  puts "All supplied directories MUST exist."
  puts
  puts "Got #{ARGV}"
end
def usage mycmd = File . basename ( $0 ) puts mycmd puts "usage: #{mycmd} <in dir 1> [[in dir 2] ...] -- <out dir 1> [[out dir 2] ...]" puts puts "Copy files from 'in' dirs to matching 'out' dirs by checking dates." puts "All supplied directories MUST exist." puts puts "Got #{ARGV}" end
usage function to display help for the hapless user
usage function to display help for the hapless user