pgcollect: use getopt for command line parsing
pgconvert: use getopt for command line parsing