Corrected outputFormat with respect to flags, flags are only allowed for long format