fix stuid bug in argument parsing

I had forgot to declare the ip argument in getopts