Add -type option to command line interface