adds a function to check for when no flags were passed