exiting the program if mandatory arguments are not supplied