Add cli arguments parser

This starts work towards supporting more filetypes. The file extension
now has to be specified in the arguments.