support single file parsing and exit