main: add requirement for at least one flag to be set