add a -f option to select a file