Can handle invalid commandline input