Uses getopt_long for picker.c and readpdf.c