add command-line option to collect metadata