Handle commandline arguments