refactor the z7-client to use the argument parser