require 'wait_pid' if ARGV.include?('-h') || ARGV.include?('--help') || ARGV.length == 0 puts "syntax: pid" exit end raise 'only one pid currently supported' if ARGV.length > 1 WaitPid.wait_pid ARGV[0].to_i