# # Copyright 2005 Perforce Software. All rights reserved. # require "P4Form" if ARGV[0] == nil then printf("Error: Require command to run as first arg\n") exit 1 end form = P4Form.new(`#{ARGV[0]}`.split("\n")) if ARGV[1] == nil then form.print($stdout) else printf("%s: [%s]\n", ARGV[1], form.fields[ARGV[1]]) end